C++: Improvement in Synchronization.qll.

This commit is contained in:
Geoffrey White
2020-06-30 12:14:56 +01:00
parent 3a3cc9a60a
commit de25bc6c78

View File

@@ -169,7 +169,10 @@ class DefaultMutexType extends MutexType {
}
}
/** Holds if `arg` is the mutex argument of a call to lock or unlock. */
/**
* Holds if `arg` is the mutex argument of a call to lock or unlock and
* `argType` is the type of the mutex.
*/
private predicate lockArg(Expr arg, MutexType argType, FunctionCall call) {
argType = arg.getUnderlyingType().stripType() and
(