Please enable JavaScript to view this site.

Thread Lock Checker Help

The Detect page of the settings dialog allows you to control which types of error you are interested in.

 

 settingsDetect

 

 

Detect lock usage

Thread Lock Checker allows you to detect a variety of different lock usage patterns. Depending on how you use your lock classes you will be interested in different groups of the patterns. Select the checkbox next to the types of usage you want Thread Lock Checker to report.

 

Detect locked locks

Detect lock usage of the form

 

 CSingleLock lock(&sect, TRUE);

 

Detect unlocked locks

Detect lock usage of the form

 

 CSingleLock lock(&sect, FALSE);

 

Detect default unlocked locks

Detect lock usage of the form

 

 CSingleLock lock(&sect);

 

Detect unknown unlocked locks

Detect lock usage of the form

 

 CSingleLock lock(&sect, variable);

 

Detect missing lock variables

Detect lock usage of the form

 

 CSingleLock(&sect, variable);

 

Detect other form of lock

Detect an alternate usage of the lock

 

 ACE_Guard<ACE_LOCK>(ACE_LOCK l);

 

Detect do not use

Detect lock that should not be used

 

 CBadlock();

 

 

Reset

Click Reset to reset all settings on all pages of the settings dialog.