Skip to content

Commit de25bc6

Browse files
committed
C++: Improvement in Synchronization.qll.
1 parent 3a3cc9a commit de25bc6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpp/ql/src/semmle/code/cpp/commons/Synchronization.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ class DefaultMutexType extends MutexType {
169169
}
170170
}
171171

172-
/** Holds if `arg` is the mutex argument of a call to lock or unlock. */
172+
/**
173+
* Holds if `arg` is the mutex argument of a call to lock or unlock and
174+
* `argType` is the type of the mutex.
175+
*/
173176
private predicate lockArg(Expr arg, MutexType argType, FunctionCall call) {
174177
argType = arg.getUnderlyingType().stripType() and
175178
(

0 commit comments

Comments
 (0)