Searched defs:LockState (Results 1 – 3 of 3) sorted by relevance
28 struct LockState { struct29 enum Kind { Destroyed, Locked, Unlocked } K;32 LockState(Kind K) : K(K) {} in LockState() function35 static LockState getLocked() { return LockState(Locked); } in getLocked()36 static LockState getUnlocked() { return LockState(Unlocked); } in getUnlocked()37 static LockState getDestroyed() { 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 …]
25 } LockState; typedef
62 enum LockState { LS_UNLOCKED, LS_LOCKED, LS_UNLOCKING }; enum