Searched defs:LockState (Results 1 – 1 of 1) sorted by relevance
32 struct LockState { struct33 enum Kind {39 } K;42 LockState(Kind K) : K(K) {} in LockState() argument48 static LockState getUntouchedAndPossiblyDestroyed() { in getUntouchedAndPossiblyDestroyed()51 static LockState getUnlockedAndPossiblyDestroyed() { in getUnlockedAndPossiblyDestroyed()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()[all …]