Home | History | Annotate | Download | only in utils

Lines Matching refs:WaitableMutexWrapper

31  * WaitableMutexWrapper can be used with AutoConditionLock to construct scoped locks for the
34 class WaitableMutexWrapper {
40 explicit WaitableMutexWrapper(Mutex* mutex);
42 virtual ~WaitableMutexWrapper();
53 * AutoConditionLock is used with a WaitableMutexWrapper to lock/unlock the WaitableMutexWrapper's
54 * wrapped Mutex, and wait/set/signal the WaitableMutexWrapper's wrapped condition. To use this,
56 * - Lock the given WaitableMutexWrapper's mutex.
57 * - Wait for the WaitableMutexWrapper's condition to become false, or timeout.
58 * - Set the WaitableMutexWrapper's condition to true.
61 * - Set the WaitableMutexWrapper's condition to false.
63 * - Release WaitableMutexWrapper's mutex.
74 * Make a new AutoConditionLock from a given WaitableMutexWrapper, waiting up to waitTime
75 * nanoseconds to acquire the WaitableMutexWrapper's wrapped lock.
80 const std::shared_ptr<WaitableMutexWrapper>& manager, nsecs_t waitTime);
83 * Make a new AutoConditionLock from a given WaitableMutexWrapper, waiting indefinitely to
84 * acquire the WaitableMutexWrapper's wrapped lock.
89 const std::shared_ptr<WaitableMutexWrapper>& manager);
91 explicit AutoConditionLock(const std::shared_ptr<WaitableMutexWrapper>& manager);
93 std::shared_ptr<WaitableMutexWrapper> mManager;