Lines Matching refs:AutoConditionLock
31 * WaitableMutexWrapper can be used with AutoConditionLock to construct scoped locks for the
35 friend class AutoConditionLock;
50 * AutoConditionLock is a scoped lock similar to Mutex::Autolock, but allows timeouts to be
53 * AutoConditionLock is used with a WaitableMutexWrapper to lock/unlock the WaitableMutexWrapper's
55 * call AutoConditionLock::waitAndAcquire to get an instance. This will:
60 * When the AutoConditionLock goes out of scope and is destroyed, this will:
65 class AutoConditionLock final {
67 AutoConditionLock() = delete;
68 AutoConditionLock(const AutoConditionLock& other) = delete;
69 AutoConditionLock & operator=(const AutoConditionLock&) = delete;
71 ~AutoConditionLock();
74 * Make a new AutoConditionLock from a given WaitableMutexWrapper, waiting up to waitTime
79 static std::unique_ptr<AutoConditionLock> waitAndAcquire(
83 * Make a new AutoConditionLock from a given WaitableMutexWrapper, waiting indefinitely to
88 static std::unique_ptr<AutoConditionLock> waitAndAcquire(
91 AutoConditionLock(const std::shared_ptr<WaitableMutexWrapper>& manager);