The Line Pragma page of the settings dialog allows you to specify a line pragma that can be used to mark individual locks to be ignored when checking for thread locking errors.
This allows you identify special lock use cases in your source code to avoid FALSE positives from Thread Lock Checker.
When line pragmas are enabled any line containing the specified line pragma in a comment (single line comment or multi-line comment) will be ignored when checking for thread locking errors.
If the line pragma is enabled, the line pragma cannot be empty or whitespace. We recommend a value that is unique across your codebase so that you can find all line pragmas easily if you need to search for them.
Example usage of the pragma in code:
CSingleLock lock(&critSect, FALSE); // SVL_TLC_PRAGMA, this lock is intentionally unlocked to start with