Home
last modified time | relevance | path

Searched refs:for_at_least (Results 1 – 25 of 39) sorted by relevance

12

/external/pigweed/pw_i2c/public/pw_i2c/
Dinitiator.h75 chrono::SystemClock::duration for_at_least) { in WriteReadFor() argument
76 return DoWriteReadFor(device_address, tx_buffer, rx_buffer, for_at_least); in WriteReadFor()
83 chrono::SystemClock::duration for_at_least) { in WriteReadFor() argument
88 for_at_least); in WriteReadFor()
112 chrono::SystemClock::duration for_at_least) { in WriteFor() argument
113 return WriteReadFor(device_address, tx_buffer, ByteSpan(), for_at_least); in WriteFor()
118 chrono::SystemClock::duration for_at_least) { in WriteFor() argument
122 for_at_least); in WriteFor()
146 chrono::SystemClock::duration for_at_least) { in ReadFor() argument
148 device_address, ConstByteSpan(), rx_buffer, for_at_least); in ReadFor()
[all …]
/external/pigweed/pw_thread_freertos/
Dsleep.cc30 void sleep_for(SystemClock::duration for_at_least) { in sleep_for() argument
34 if (for_at_least <= SystemClock::duration::zero()) { in sleep_for()
43 while (for_at_least > kMaxTimeoutMinusOne) { in sleep_for()
45 for_at_least -= kMaxTimeoutMinusOne; in sleep_for()
47 vTaskDelay(static_cast<TickType_t>(for_at_least.count() + 1)); in sleep_for()
/external/pigweed/pw_thread_embos/
Dsleep.cc29 void sleep_for(chrono::SystemClock::duration for_at_least) { in sleep_for() argument
33 if (for_at_least <= SystemClock::duration::zero()) { in sleep_for()
42 while (for_at_least > kMaxTimeoutMinusOne) { in sleep_for()
44 for_at_least -= kMaxTimeoutMinusOne; in sleep_for()
46 OS_Delay(static_cast<OS_TIME>(for_at_least.count())); in sleep_for()
/external/pigweed/pw_sync_embos/
Dbinary_semaphore.cc29 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() argument
33 if (for_at_least <= SystemClock::duration::zero()) { in try_acquire_for()
41 while (for_at_least > kMaxTimeoutMinusOne) { in try_acquire_for()
46 for_at_least -= kMaxTimeoutMinusOne; in try_acquire_for()
49 static_cast<OS_TIME>(for_at_least.count() + 1)); in try_acquire_for()
Dtimed_mutex.cc29 bool TimedMutex::try_lock_for(SystemClock::duration for_at_least) { in try_lock_for() argument
33 if (for_at_least <= SystemClock::duration::zero()) { in try_lock_for()
41 while (for_at_least > kMaxTimeoutMinusOne) { in try_lock_for()
48 for_at_least -= kMaxTimeoutMinusOne; in try_lock_for()
51 &native_handle(), static_cast<OS_TIME>(for_at_least.count() + 1)); in try_lock_for()
Dcounting_semaphore.cc43 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() argument
47 if (for_at_least <= SystemClock::duration::zero()) { in try_acquire_for()
55 while (for_at_least > kMaxTimeoutMinusOne) { in try_acquire_for()
60 for_at_least -= kMaxTimeoutMinusOne; in try_acquire_for()
63 static_cast<OS_TIME>(for_at_least.count() + 1)); in try_acquire_for()
/external/pigweed/pw_sync_freertos/
Dtimed_mutex.cc30 bool TimedMutex::try_lock_for(SystemClock::duration for_at_least) { in try_lock_for() argument
34 if (for_at_least <= SystemClock::duration::zero()) { in try_lock_for()
42 while (for_at_least > kMaxTimeoutMinusOne) { in try_lock_for()
48 for_at_least -= kMaxTimeoutMinusOne; in try_lock_for()
51 static_cast<TickType_t>(for_at_least.count() + 1)) == in try_lock_for()
Dbinary_semaphore.cc36 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() argument
40 if (for_at_least <= SystemClock::duration::zero()) { in try_acquire_for()
48 while (for_at_least > kMaxTimeoutMinusOne) { in try_acquire_for()
54 for_at_least -= kMaxTimeoutMinusOne; in try_acquire_for()
57 static_cast<TickType_t>(for_at_least.count() + 1)) == in try_acquire_for()
Dcounting_semaphore.cc56 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() argument
60 if (for_at_least <= SystemClock::duration::zero()) { in try_acquire_for()
68 while (for_at_least > kMaxTimeoutMinusOne) { in try_acquire_for()
74 for_at_least -= kMaxTimeoutMinusOne; in try_acquire_for()
77 static_cast<TickType_t>(for_at_least.count() + 1)) == in try_acquire_for()
/external/pigweed/pw_thread_stl/public/pw_thread_stl/
Dsleep_inline.h23 inline void sleep_for(chrono::SystemClock::duration for_at_least) { in sleep_for() argument
24 for_at_least = std::max(for_at_least, chrono::SystemClock::duration::zero()); in sleep_for()
27 if (for_at_least == chrono::SystemClock::duration::zero()) { in sleep_for()
30 return std::this_thread::sleep_for(for_at_least); in sleep_for()
/external/pigweed/pw_thread_threadx/
Dsleep.cc29 void sleep_for(chrono::SystemClock::duration for_at_least) { in sleep_for() argument
33 if (for_at_least <= chrono::SystemClock::duration::zero()) { in sleep_for()
42 while (for_at_least > kMaxTimeoutMinusOne) { in sleep_for()
46 for_at_least -= kMaxTimeoutMinusOne; in sleep_for()
49 tx_thread_sleep(static_cast<ULONG>(for_at_least.count() + 1)); in sleep_for()
/external/pigweed/pw_sync_threadx/
Dcounting_semaphore.cc29 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() argument
34 if (for_at_least <= SystemClock::duration::zero()) { in try_acquire_for()
42 while (for_at_least > kMaxTimeoutMinusOne) { in try_acquire_for()
50 for_at_least -= kMaxTimeoutMinusOne; in try_acquire_for()
53 &native_type_, static_cast<ULONG>(for_at_least.count() + 1)); in try_acquire_for()
Dtimed_mutex.cc29 bool TimedMutex::try_lock_for(SystemClock::duration for_at_least) { in try_lock_for() argument
34 if (for_at_least <= SystemClock::duration::zero()) { in try_lock_for()
42 while (for_at_least > kMaxTimeoutMinusOne) { in try_lock_for()
49 for_at_least -= kMaxTimeoutMinusOne; in try_lock_for()
52 tx_mutex_get(&native_type_, static_cast<ULONG>(for_at_least.count() + 1)); in try_lock_for()
Dbinary_semaphore.cc29 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for() argument
34 if (for_at_least <= SystemClock::duration::zero()) { in try_acquire_for()
42 while (for_at_least > kMaxTimeoutMinusOne) { in try_acquire_for()
50 for_at_least -= kMaxTimeoutMinusOne; in try_acquire_for()
53 &native_type_, static_cast<ULONG>(for_at_least.count() + 1)); in try_acquire_for()
/external/pigweed/pw_thread/
Dsleep_facade_test_c.c20 void pw_this_thread_CallSleepFor(pw_chrono_SystemClock_Duration for_at_least) { in pw_this_thread_CallSleepFor() argument
21 pw_this_thread_SleepFor(for_at_least); in pw_this_thread_CallSleepFor()
Dsleep.cc20 pw_chrono_SystemClock_Duration for_at_least) { in pw_this_thread_SleepFor() argument
21 pw::this_thread::sleep_for(SystemClock::duration(for_at_least.ticks)); in pw_this_thread_SleepFor()
/external/pigweed/pw_sync_stl/public/pw_sync_stl/
Dtimed_mutex_inline.h22 chrono::SystemClock::duration for_at_least) { in try_lock_for() argument
23 return native_handle().try_lock_for(for_at_least); in try_lock_for()
Dbinary_semaphore_inline.h27 chrono::SystemClock::duration for_at_least) { in try_acquire_for() argument
34 return try_acquire_until(chrono::SystemClock::now() + for_at_least); in try_acquire_for()
Dcounting_semaphore_inline.h29 chrono::SystemClock::duration for_at_least) { in try_acquire_for() argument
31 return try_acquire_until(chrono::SystemClock::now() + for_at_least); in try_acquire_for()
/external/pigweed/pw_thread/public/pw_thread/
Dsleep.h32 void sleep_for(chrono::SystemClock::duration for_at_least);
56 void pw_this_thread_SleepFor(pw_chrono_SystemClock_Duration for_at_least);
/external/pigweed/pw_sync/
Dtimed_mutex_facade_test_c.c31 pw_sync_TimedMutex* mutex, pw_chrono_SystemClock_Duration for_at_least) { in pw_sync_TimedMutex_CallTryLockFor() argument
32 return pw_sync_TimedMutex_TryLockFor(mutex, for_at_least); in pw_sync_TimedMutex_CallTryLockFor()
Dbinary_semaphore_facade_test_c.c37 pw_chrono_SystemClock_Duration for_at_least) { in pw_sync_BinarySemaphore_CallTryAcquireFor() argument
38 return pw_sync_BinarySemaphore_TryAcquireFor(semaphore, for_at_least); in pw_sync_BinarySemaphore_CallTryAcquireFor()
Dcounting_semaphore_facade_test_c.c44 pw_chrono_SystemClock_Duration for_at_least) { in pw_sync_CountingSemaphore_CallTryAcquireFor() argument
45 return pw_sync_CountingSemaphore_TryAcquireFor(semaphore, for_at_least); in pw_sync_CountingSemaphore_CallTryAcquireFor()
Dtimed_mutex.cc28 pw_sync_TimedMutex* mutex, pw_chrono_SystemClock_Duration for_at_least) { in pw_sync_TimedMutex_TryLockFor() argument
29 return mutex->try_lock_for(SystemClock::duration(for_at_least.ticks)); in pw_sync_TimedMutex_TryLockFor()
Dbinary_semaphore.cc36 pw_chrono_SystemClock_Duration for_at_least) { in pw_sync_BinarySemaphore_TryAcquireFor() argument
37 return semaphore->try_acquire_for(SystemClock::duration(for_at_least.ticks)); in pw_sync_BinarySemaphore_TryAcquireFor()

12