Home
last modified time | relevance | path

Searched refs:try_acquire_for (Results 1 – 25 of 42) sorted by relevance

12

/external/pigweed/pw_sync/
Dcondition_variable_test.cc119 EXPECT_TRUE(thread_info.done_notifier.try_acquire_for(kFailureTimeout)); in TEST()
132 ASSERT_TRUE(thread_info.waiting_notifier.try_acquire_for(kFailureTimeout)); in TEST()
138 ASSERT_TRUE(thread_info.done_notifier.try_acquire_for(kFailureTimeout)); in TEST()
174 ASSERT_TRUE(thread_info[0].waiting_notifier.try_acquire_for(kFailureTimeout)); in TEST()
175 ASSERT_TRUE(thread_info[1].waiting_notifier.try_acquire_for(kFailureTimeout)); in TEST()
183 ASSERT_TRUE(thread_info[wait_order[0]].done_notifier.try_acquire_for( in TEST()
187 ASSERT_TRUE(thread_info[wait_order[1]].done_notifier.try_acquire_for( in TEST()
211 ASSERT_TRUE(thread_info[0].waiting_notifier.try_acquire_for(kFailureTimeout)); in TEST()
212 ASSERT_TRUE(thread_info[1].waiting_notifier.try_acquire_for(kFailureTimeout)); in TEST()
219 ASSERT_TRUE(thread_info[0].done_notifier.try_acquire_for(kFailureTimeout)); in TEST()
[all …]
Dtimed_thread_notification_facade_test.cc69 EXPECT_TRUE(notification.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
79 EXPECT_FALSE(notification.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
89 EXPECT_FALSE(notification.try_acquire_for(SystemClock::duration::zero())); in TEST()
99 EXPECT_FALSE(notification.try_acquire_for(-kRoundedArbitraryDuration)); in TEST()
Dbinary_semaphore_facade_test.cc87 EXPECT_TRUE(semaphore.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
97 EXPECT_FALSE(semaphore.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
108 EXPECT_FALSE(semaphore.try_acquire_for(SystemClock::duration::zero())); in TEST()
119 EXPECT_FALSE(semaphore.try_acquire_for(-kRoundedArbitraryDuration)); in TEST()
Dcounting_semaphore_facade_test.cc106 EXPECT_TRUE(semaphore.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
116 EXPECT_FALSE(semaphore.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
127 EXPECT_FALSE(semaphore.try_acquire_for(SystemClock::duration::zero())); in TEST()
138 EXPECT_FALSE(semaphore.try_acquire_for(-kRoundedArbitraryDuration)); in TEST()
Dbinary_semaphore.cc37 return semaphore->try_acquire_for(SystemClock::duration(timeout.ticks)); in pw_sync_BinarySemaphore_TryAcquireFor()
Dcounting_semaphore.cc42 return semaphore->try_acquire_for(SystemClock::duration(timeout.ticks)); in pw_sync_CountingSemaphore_TryAcquireFor()
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/thread/
Dsemaphore.availability.verify.cpp24 sem.try_acquire_for(std::chrono::milliseconds{3}); // expected-error 1-2 {{is unavailable}} in f()
34 sem.try_acquire_for(std::chrono::milliseconds{3}); // expected-error 1-2 {{is unavailable}} in f()
44 sem.try_acquire_for(std::chrono::milliseconds{3}); // expected-error 1-2 {{is unavailable}} in f()
/external/pigweed/pw_rpc/fuzz/
Dalarm_timer_test.cc40 EXPECT_FALSE(sem.try_acquire_for(10us)); in TEST()
50 EXPECT_FALSE(sem.try_acquire_for(100us)); in TEST()
60 EXPECT_FALSE(sem.try_acquire_for(100us)); in TEST()
/external/cronet/buildtools/third_party/libc++/trunk/include/
Dsemaphore34 bool try_acquire_for(const chrono::duration<Rep, Period>& rel_time);
114 bool try_acquire_for(chrono::duration<Rep, Period> const& __rel_time)
165 bool try_acquire_for(chrono::duration<Rep, Period> const& __rel_time)
167 return __semaphore_.try_acquire_for(chrono::duration_cast<chrono::nanoseconds>(__rel_time));
182 return try_acquire_for(__abs_time - __current);
/external/pigweed/pw_sync/public/pw_sync/backends/
Dbinary_semaphore_timed_thread_notification_inline.h21 inline bool TimedThreadNotification::try_acquire_for( in try_acquire_for() function
23 return native_handle().try_acquire_for(timeout); in try_acquire_for()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.semaphore/
Dtimed.pass.cpp31 assert(!s.try_acquire_for(std::chrono::milliseconds(250))); in main()
41 assert(s.try_acquire_for(std::chrono::seconds(2))); in main()
/external/pigweed/pw_sync_freertos/public/pw_sync_freertos/
Dtimed_thread_notification_inline.h21 inline bool TimedThreadNotification::try_acquire_for( in try_acquire_for() function
/external/pigweed/pw_sync_stl/public/pw_sync_stl/
Dbinary_semaphore_inline.h26 inline bool BinarySemaphore::try_acquire_for( in try_acquire_for() function
Dcounting_semaphore_inline.h26 inline bool CountingSemaphore::try_acquire_for( in try_acquire_for() function
/external/pigweed/pw_sync/public/pw_sync/
Dtimed_thread_notification.h57 bool try_acquire_for(chrono::SystemClock::duration timeout);
/external/pigweed/pw_sync_zephyr/
Dbinary_semaphore.cc21 bool BinarySemaphore::try_acquire_for(chrono::SystemClock::duration timeout) { in try_acquire_for() function in pw::sync::BinarySemaphore
/external/pigweed/pw_sync_embos/public/pw_sync_embos/
Dcounting_semaphore_inline.h47 return try_acquire_for(deadline - chrono::SystemClock::now()); in try_acquire_until()
Dbinary_semaphore_inline.h47 return try_acquire_for(deadline - chrono::SystemClock::now()); in try_acquire_until()
/external/pigweed/pw_sync_embos/
Dbinary_semaphore.cc29 bool BinarySemaphore::try_acquire_for(SystemClock::duration timeout) { in try_acquire_for() function in pw::sync::BinarySemaphore
Dcounting_semaphore.cc43 bool CountingSemaphore::try_acquire_for(SystemClock::duration timeout) { in try_acquire_for() function in pw::sync::CountingSemaphore
/external/pigweed/pw_sync_freertos/
Dbinary_semaphore.cc36 bool BinarySemaphore::try_acquire_for(SystemClock::duration timeout) { in try_acquire_for() function in pw::sync::BinarySemaphore
/external/pigweed/pw_sync_zephyr/public/pw_sync_zephyr/
Dbinary_semaphore_inline.h50 return try_acquire_for(deadline - chrono::SystemClock::now()); in try_acquire_until()
/external/pigweed/pw_sync_threadx/
Dcounting_semaphore.cc29 bool CountingSemaphore::try_acquire_for(SystemClock::duration timeout) { in try_acquire_for() function in pw::sync::CountingSemaphore
Dbinary_semaphore.cc29 bool BinarySemaphore::try_acquire_for(SystemClock::duration timeout) { in try_acquire_for() function in pw::sync::BinarySemaphore
/external/pigweed/pw_sync_threadx/public/pw_sync_threadx/
Dcounting_semaphore_inline.h67 return try_acquire_for(deadline - chrono::SystemClock::now()); in try_acquire_until()

12