Home
last modified time | relevance | path

Searched refs:CountingSemaphore (Results 1 – 16 of 16) sorted by relevance

/external/pigweed/pw_sync/
Dcounting_semaphore_facade_test.cc57 TEST(CountingSemaphore, EmptyInitialState) { in TEST() argument
58 CountingSemaphore semaphore; in TEST()
64 TEST(CountingSemaphore, SingleRelease) { in TEST() argument
65 CountingSemaphore semaphore; in TEST()
74 CountingSemaphore empty_initial_semaphore;
75 TEST(CountingSemaphore, EmptyInitialStateStatic) { in TEST() argument
79 CountingSemaphore release_semaphore;
80 TEST(CountingSemaphore, ReleaseStatic) { in TEST() argument
89 TEST(CountingSemaphore, MultiRelease) { in TEST() argument
90 CountingSemaphore semaphore; in TEST()
[all …]
Dcounting_semaphore.cc53 return pw::sync::CountingSemaphore::max(); in pw_sync_CountingSemaphore_Max()
Ddocs.rst978 CountingSemaphore section in Signaling Primitives
980 The CountingSemaphore is a synchronization primitive that can be used for
988 The CountingSemaphore is initialized to being empty or having no tokens.
1017 BinarySemaphore is a specialization of CountingSemaphore with an arbitrary token
1022 default implementation of CountingSemaphore.
/external/pigweed/pw_sync/public/pw_sync/
Dcounting_semaphore.h40 class CountingSemaphore {
44 CountingSemaphore();
45 ~CountingSemaphore();
46 CountingSemaphore(const CountingSemaphore&) = delete;
47 CountingSemaphore(CountingSemaphore&&) = delete;
48 CountingSemaphore& operator=(const CountingSemaphore&) = delete;
49 CountingSemaphore& operator=(CountingSemaphore&&) = delete;
97 using pw_sync_CountingSemaphore = pw::sync::CountingSemaphore;
/external/pigweed/pw_sync_threadx/public/pw_sync_threadx/
Dcounting_semaphore_inline.h31 inline CountingSemaphore::CountingSemaphore() : native_type_() { in CountingSemaphore() function
38 inline CountingSemaphore::~CountingSemaphore() { in ~CountingSemaphore()
42 inline void CountingSemaphore::release(ptrdiff_t update) { in release()
48 inline void CountingSemaphore::acquire() { in acquire()
54 inline bool CountingSemaphore::try_acquire() noexcept { in try_acquire()
63 inline bool CountingSemaphore::try_acquire_until( in try_acquire_until()
70 inline CountingSemaphore::native_handle_type
71 CountingSemaphore::native_handle() { in native_handle()
/external/pigweed/pw_sync_embos/public/pw_sync_embos/
Dcounting_semaphore_inline.h25 inline CountingSemaphore::CountingSemaphore() : native_type_() { in CountingSemaphore() function
29 inline CountingSemaphore::~CountingSemaphore() { in ~CountingSemaphore()
33 inline void CountingSemaphore::acquire() { in acquire()
38 inline bool CountingSemaphore::try_acquire() noexcept { in try_acquire()
42 inline bool CountingSemaphore::try_acquire_until( in try_acquire_until()
49 inline CountingSemaphore::native_handle_type
50 CountingSemaphore::native_handle() { in native_handle()
/external/pigweed/pw_sync_freertos/public/pw_sync_freertos/
Dcounting_semaphore_inline.h26 inline CountingSemaphore::CountingSemaphore() : native_type_() { in CountingSemaphore() function
34 inline CountingSemaphore::~CountingSemaphore() { in ~CountingSemaphore()
38 inline void CountingSemaphore::acquire() { in acquire()
52 inline bool CountingSemaphore::try_acquire() noexcept { in try_acquire()
65 inline bool CountingSemaphore::try_acquire_until( in try_acquire_until()
72 inline CountingSemaphore::native_handle_type
73 CountingSemaphore::native_handle() { in native_handle()
/external/pigweed/pw_sync_stl/public/pw_sync_stl/
Dcounting_semaphore_inline.h23 inline CountingSemaphore::CountingSemaphore() in CountingSemaphore() function
26 inline CountingSemaphore::~CountingSemaphore() {} in ~CountingSemaphore()
28 inline bool CountingSemaphore::try_acquire_for( in try_acquire_for()
34 inline CountingSemaphore::native_handle_type
35 CountingSemaphore::native_handle() { in native_handle()
/external/pigweed/pw_sync_stl/
Dcounting_semaphore.cc23 void CountingSemaphore::release(ptrdiff_t update) { in release()
27 PW_DCHECK_UINT_LE(update, CountingSemaphore::max() - native_type_.count); in release()
33 void CountingSemaphore::acquire() { in acquire()
39 bool CountingSemaphore::try_acquire() noexcept { in try_acquire()
48 bool CountingSemaphore::try_acquire_until( in try_acquire_until()
DBUILD.gn56 # This target provides the backend for pw::sync::CountingSemaphore.
77 "The STL pw::sync::CountingSemaphore backend only works with the " +
/external/pigweed/pw_sync_embos/
Dcounting_semaphore.cc29 void CountingSemaphore::release(ptrdiff_t update) { in release()
37 CountingSemaphore::max(), in release()
43 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for()
DBUILD.gn59 # This target provides the backend for pw::sync::CountingSemaphore.
83 "The embOS pw::sync::CountingSemaphore backend only works with " +
/external/pigweed/pw_sync_freertos/
Dcounting_semaphore.cc39 void CountingSemaphore::release(ptrdiff_t update) { in release()
56 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for()
DBUILD.gn59 # This target provides the backend for pw::sync::CountingSemaphore.
83 "The FreeRTOS pw::sync::CountingSemaphore backend only works with " +
/external/pigweed/pw_sync_threadx/
Dcounting_semaphore.cc29 bool CountingSemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for()
DBUILD.gn84 # This target provides the backend for pw::sync::CountingSemaphore.
110 "The ThreadX pw::sync::CountingSemaphore backend only works with " +