Skip to content

Commit 390f670

Browse files
jsingletmbaluda
andauthored
Update cpp/common/src/codingstandards/cpp/Concurrency.qll
Co-authored-by: Mauro Baluda <mbaluda@github.com>
1 parent 4c7c348 commit 390f670

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpp/common/src/codingstandards/cpp/Concurrency.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,8 @@ class LockProtectedControlFlowNode extends ThreadedCFN {
404404
// to the caller to enforce this condition.
405405
// Because of the way that `getAThreadContextAwarePredecessor` works, it is possible
406406
// for operations PAST it to be technically part of the predecessors.
407-
// Thus, we need to make sure that this lock (to be actually)
408-
// an unlock along the same path it must be the case that when we
409-
// supply it as the starting point of the search it hits the try lock
407+
// Thus, we need to make sure that this node is a
408+
// successor of the unlock in the CFG
410409
getAThreadContextAwareSuccessor(unlock) = this
411410
) and
412411
(lock instanceof MutexFunctionCall implies not this.(MutexFunctionCall).isUnlock())

0 commit comments

Comments
 (0)