6#ifdef ROO_THREADS_SINGLETHREADED
8#include "roo_backport.h"
9#include "roo_backport/move.h"
13namespace singlethreaded {
15template <std::ptrdiff_t LeastMaxValue =
16 std::numeric_limits<std::ptrdiff_t>::max()>
20class counting_semaphore {
22 counting_semaphore() noexcept = default;
23 counting_semaphore(const counting_semaphore&) = delete;
24 counting_semaphore& operator=(const counting_semaphore&) = delete;
27 void acquire() noexcept {}
29 void release() noexcept {}
counting_semaphore< 1 > binary_semaphore
Semaphore with maximum count of one.