0 items - $0.00
Follow softwareverify on Twitter

Analyse threading problems quickly and easily

Thread Lock Checker

Thread Lock Checker is a software tool that scans source code looking for various usage types of single and multiple critical section locking classes, such as CSingleLock and CMultiLock. Additional class names can be specified so that you can search for your own classes that implement similar behaviour.

Thread Lock Checker

Thread Lock Checker scans all source files under a specified disk hierarchy. When usage types are found that match the criteria specified in the settings the usage is reported on the lock report.

Lock Report

In the lock report shown above 11 matches have been found for CSingleLock criteria that match the settings. These include:

  • Six cases of a CSingleLock created deliberately unlocked.
  • One case of a CSingleLock created unlocked because no locking parameter was specified (and thus the default of unlocked is used).
  • One case of a CSingleLock created and locked by a value specified in a variable. This is marked "Unknown unlocked".
  • Three cases of CSingleLocks incorrectly being created on the stack but with no variable name declaration. This results in code that will compile but will create a CSingleLock that is immediately destroyed. Thus the lock, although in place can never protect the resource that it is intended to protect.

Source Code

Clicking on an entry in the lock report will shown the source code in the source code viewer. The line of interest is highlighted in green.

Double clicking on an entry in the lock report will start Visual Studio to edit the source code.

Download Thread Lock Checker and scan your source code for errors.

Threading Tools

We also provide the following threading tools:

Go to Top ^^