Lines Matching full:mutex
30 void pw_sync_TimedMutex_CallLock(pw_sync_TimedMutex* mutex);
31 bool pw_sync_TimedMutex_CallTryLock(pw_sync_TimedMutex* mutex);
33 pw_sync_TimedMutex* mutex, pw_chrono_SystemClock_Duration for_at_least);
35 pw_sync_TimedMutex* mutex, pw_chrono_SystemClock_TimePoint until_at_least);
36 void pw_sync_TimedMutex_CallUnlock(pw_sync_TimedMutex* mutex);
51 pw::sync::TimedMutex mutex; in TEST() local
52 mutex.lock(); in TEST()
54 // EXPECT_FALSE(mutex.try_lock()); in TEST()
55 mutex.unlock(); in TEST()
67 pw::sync::TimedMutex mutex; in TEST() local
68 const bool locked = mutex.try_lock(); in TEST()
72 // EXPECT_FALSE(mutex.try_lock()); in TEST()
73 mutex.unlock(); in TEST()
78 pw::sync::TimedMutex mutex; in TEST() local
81 const bool locked = mutex.try_lock_for(kRoundedArbitraryDuration); in TEST()
89 // EXPECT_FALSE(mutex.try_lock_for(kRoundedArbitraryDuration)); in TEST()
93 mutex.unlock(); in TEST()
98 pw::sync::TimedMutex mutex; in TEST() local
102 const bool locked = mutex.try_lock_until(deadline); in TEST()
109 // mutex.try_lock_until(SystemClock::now() + in TEST()
113 mutex.unlock(); in TEST()
118 pw::sync::TimedMutex mutex; in TEST() local
119 pw_sync_TimedMutex_CallLock(&mutex); in TEST()
120 pw_sync_TimedMutex_CallUnlock(&mutex); in TEST()
124 pw::sync::TimedMutex mutex; in TEST() local
125 ASSERT_TRUE(pw_sync_TimedMutex_CallTryLock(&mutex)); in TEST()
127 // EXPECT_FALSE(pw_sync_TimedMutex_CallTryLock(&mutex)); in TEST()
128 pw_sync_TimedMutex_CallUnlock(&mutex); in TEST()
132 pw::sync::TimedMutex mutex; in TEST() local
136 pw_sync_TimedMutex_CallTryLockFor(&mutex, kRoundedArbitraryDurationInC)); in TEST()
144 // pw_sync_TimedMutex_CallTryLockFor(&mutex, in TEST()
150 pw_sync_TimedMutex_CallUnlock(&mutex); in TEST()
154 pw::sync::TimedMutex mutex; in TEST() local
159 ASSERT_TRUE(pw_sync_TimedMutex_CallTryLockUntil(&mutex, deadline)); in TEST()
164 // EXPECT_FALSE(pw_sync_TimedMutex_CallTryLockUntil(&mutex, deadline)); in TEST()
168 pw_sync_TimedMutex_CallUnlock(&mutex); in TEST()