5#if (defined ROO_THREADS_USE_CPPSTD)
13template <std::ptrdiff_t LeastMaxValue>
14using counting_semaphore =
15 roo_threads::cppstd::counting_semaphore<LeastMaxValue>;
22#elif (defined ROO_THREADS_USE_FREERTOS)
30template <std::ptrdiff_t LeastMaxValue>
31using counting_semaphore =
32 roo_threads::freertos::counting_semaphore<LeastMaxValue>;
39#elif (defined ROO_THREADS_USE_ROO_TESTING)
41#include "roo_threads/impl/roo_testing/semaphore.h"
47template <std::ptrdiff_t LeastMaxValue>
48using counting_semaphore =
49 roo_threads::roo_testing::counting_semaphore<LeastMaxValue>;
56#elif (defined ROO_THREADS_USE_SINGLETHREADED)
64template <std::ptrdiff_t LeastMaxValue>
65using counting_semaphore =
66 roo_threads::singlethreaded::counting_semaphore<LeastMaxValue>;
counting_semaphore< 1 > binary_semaphore
Semaphore with maximum count of one.