CodeQL library for C/C++
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)