CodeQL library for C/C++
codeql/cpp-all 0.13.0 (changelog, source)
Search

Predicate trylockCall

Holds if call is a call that tries to lock its argument arg, but may return without success.

Import path

import cpp
predicate trylockCall(Expr arg, FunctionCall call)