Home
last modified time | relevance | path

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

/external/llvm-project/libcxx/test/libcxx/thread/
Dsemaphore.availability.verify.cpp32 sem.try_acquire_for(std::chrono::milliseconds{3}); // expected-error 1-2 {{is unavailable}} in main()
42 sem.try_acquire_for(std::chrono::milliseconds{3}); // expected-error 1-2 {{is unavailable}} in main()
52 sem.try_acquire_for(std::chrono::milliseconds{3}); // expected-error 1-2 {{is unavailable}} in main()
/external/llvm-project/libcxx/include/
Dsemaphore34 bool try_acquire_for(const chrono::duration<Rep, Period>& rel_time);
109 bool try_acquire_for(chrono::duration<Rep, Period> const& __rel_time)
160 bool try_acquire_for(chrono::nanoseconds __rel_time)
211 bool try_acquire_for(chrono::duration<Rep, Period> const& __rel_time)
213 return __semaphore.try_acquire_for(chrono::duration_cast<chrono::nanoseconds>(__rel_time));
218 return try_acquire_for(chrono::nanoseconds::zero());
228 return try_acquire_for(__abs_time - current);
/external/llvm-project/libcxx/test/std/thread/thread.semaphore/
Dtimed.pass.cpp40 assert(!s.try_acquire_for(std::chrono::milliseconds(250))); in main()
50 assert(s.try_acquire_for(std::chrono::seconds(2))); in main()
/external/pigweed/pw_sync/
Dbinary_semaphore_facade_test.cc87 EXPECT_TRUE(semaphore.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
93 EXPECT_FALSE(semaphore.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
Dcounting_semaphore_facade_test.cc105 EXPECT_TRUE(semaphore.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
111 EXPECT_FALSE(semaphore.try_acquire_for(kRoundedArbitraryDuration)); in TEST()
Dbinary_semaphore.cc37 return semaphore->try_acquire_for(SystemClock::duration(for_at_least.ticks)); in pw_sync_BinarySemaphore_TryAcquireFor()
Dcounting_semaphore.cc42 return semaphore->try_acquire_for(SystemClock::duration(for_at_least.ticks)); in pw_sync_CountingSemaphore_TryAcquireFor()
/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.h28 inline bool CountingSemaphore::try_acquire_for( in try_acquire_for() function
/external/pigweed/pw_sync_embos/public/pw_sync_embos/
Dcounting_semaphore_inline.h46 return try_acquire_for(until_at_least - chrono::SystemClock::now()); in try_acquire_until()
Dbinary_semaphore_inline.h46 return try_acquire_for(until_at_least - chrono::SystemClock::now()); in try_acquire_until()
/external/pigweed/pw_sync_embos/
Dbinary_semaphore.cc29 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() function in pw::sync::BinarySemaphore
Dcounting_semaphore.cc43 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() function in pw::sync::CountingSemaphore
/external/pigweed/pw_sync_freertos/
Dbinary_semaphore.cc36 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() function in pw::sync::BinarySemaphore
Dcounting_semaphore.cc56 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() function in pw::sync::CountingSemaphore
/external/pigweed/pw_sync_threadx/
Dcounting_semaphore.cc29 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() function in pw::sync::CountingSemaphore
Dbinary_semaphore.cc29 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() function in pw::sync::BinarySemaphore
/external/pigweed/pw_sync_freertos/public/pw_sync_freertos/
Dcounting_semaphore_inline.h69 return try_acquire_for(until_at_least - chrono::SystemClock::now()); in try_acquire_until()
Dbinary_semaphore_inline.h79 return try_acquire_for(until_at_least - chrono::SystemClock::now()); in try_acquire_until()
/external/pigweed/pw_sync_threadx/public/pw_sync_threadx/
Dcounting_semaphore_inline.h67 return try_acquire_for(until_at_least - chrono::SystemClock::now()); in try_acquire_until()
Dbinary_semaphore_inline.h66 return try_acquire_for(until_at_least - chrono::SystemClock::now()); in try_acquire_until()
/external/pigweed/pw_sync/public/pw_sync/
Dbinary_semaphore.h74 bool try_acquire_for(chrono::SystemClock::duration for_at_least);
Dcounting_semaphore.h74 bool try_acquire_for(chrono::SystemClock::duration for_at_least);