Lines Matching defs:LockState
33 struct LockState { struct
34 enum Kind {
40 } K;
43 LockState(Kind K) : K(K) {} in LockState() argument
46 static LockState getLocked() { return LockState(Locked); } in getLocked()
47 static LockState getUnlocked() { return LockState(Unlocked); } in getUnlocked()
48 static LockState getDestroyed() { return LockState(Destroyed); } in getDestroyed()
49 static LockState getUntouchedAndPossiblyDestroyed() { in getUntouchedAndPossiblyDestroyed()
52 static LockState getUnlockedAndPossiblyDestroyed() { in getUnlockedAndPossiblyDestroyed()
56 bool operator==(const LockState &X) const { return K == X.K; } in operator ==()
58 bool isLocked() const { return K == Locked; } in isLocked()
59 bool isUnlocked() const { return K == Unlocked; } in isUnlocked()
60 bool isDestroyed() const { return K == Destroyed; } in isDestroyed()
61 bool isUntouchedAndPossiblyDestroyed() const { in isUntouchedAndPossiblyDestroyed()
64 bool isUnlockedAndPossiblyDestroyed() const { in isUnlockedAndPossiblyDestroyed()
68 void Profile(llvm::FoldingSetNodeID &ID) const { ID.AddInteger(K); } in Profile()