Lines Matching defs:LockState
32 struct LockState { struct
33 enum Kind {
39 } K;
42 LockState(Kind K) : K(K) {} in LockState() function
45 static LockState getLocked() { return LockState(Locked); } in getLocked()
46 static LockState getUnlocked() { return LockState(Unlocked); } in getUnlocked()
47 static LockState getDestroyed() { return LockState(Destroyed); } in getDestroyed()
48 static LockState getUntouchedAndPossiblyDestroyed() { in getUntouchedAndPossiblyDestroyed()
51 static LockState getUnlockedAndPossiblyDestroyed() { in getUnlockedAndPossiblyDestroyed()
55 bool operator==(const LockState &X) const { return K == X.K; } in operator ==()
57 bool isLocked() const { return K == Locked; } in isLocked()
58 bool isUnlocked() const { return K == Unlocked; } in isUnlocked()
59 bool isDestroyed() const { return K == Destroyed; } in isDestroyed()
60 bool isUntouchedAndPossiblyDestroyed() const { in isUntouchedAndPossiblyDestroyed()
63 bool isUnlockedAndPossiblyDestroyed() const { in isUnlockedAndPossiblyDestroyed()
67 void Profile(llvm::FoldingSetNodeID &ID) const { ID.AddInteger(K); } in Profile()