Lines Matching defs:LockState
27 struct LockState { struct
28 enum Kind {
34 } K;
37 LockState(Kind K) : K(K) {} in LockState() function
40 static LockState getLocked() { return LockState(Locked); } in getLocked()
41 static LockState getUnlocked() { return LockState(Unlocked); } in getUnlocked()
42 static LockState getDestroyed() { return LockState(Destroyed); } in getDestroyed()
43 static LockState getUntouchedAndPossiblyDestroyed() { in getUntouchedAndPossiblyDestroyed()
46 static LockState getUnlockedAndPossiblyDestroyed() { in getUnlockedAndPossiblyDestroyed()
50 bool operator==(const LockState &X) const { in operator ==()
54 bool isLocked() const { return K == Locked; } in isLocked()
55 bool isUnlocked() const { return K == Unlocked; } in isUnlocked()
56 bool isDestroyed() const { return K == Destroyed; } in isDestroyed()
57 bool isUntouchedAndPossiblyDestroyed() const { in isUntouchedAndPossiblyDestroyed()
60 bool isUnlockedAndPossiblyDestroyed() const { in isUnlockedAndPossiblyDestroyed()
64 void Profile(llvm::FoldingSetNodeID &ID) const { in Profile()