Home
last modified time | relevance | path

Searched defs:LockState (Results 1 – 1 of 1) sorted by relevance

/minix3/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DPthreadLockChecker.cpp28 struct LockState { struct
29 enum Kind { Destroyed, Locked, Unlocked } K;
32 LockState(Kind K) : K(K) {} in LockState() function
35 static LockState getLocked(void) { return LockState(Locked); } in getLocked()
36 static LockState getUnlocked(void) { return LockState(Unlocked); } in getUnlocked()
37 static LockState getDestroyed(void) { return LockState(Destroyed); } in getDestroyed()
39 bool operator==(const LockState &X) const { in operator ==()
43 bool isLocked() const { return K == Locked; } in isLocked()
44 bool isUnlocked() const { return K == Unlocked; } in isUnlocked()
45 bool isDestroyed() const { return K == Destroyed; } in isDestroyed()
[all …]