|
| | SemaphoreRef (SemaphoreRaw resource) noexcept |
| | Constructs from raw Semaphore. More...
|
| |
| constexpr | SemaphoreRef (const Semaphore &resource) noexcept |
| | Constructs from Semaphore. More...
|
| |
|
constexpr | SemaphoreRef (const SemaphoreRef &other) noexcept |
| | Copy constructor.
|
| |
|
constexpr | SemaphoreRef (SemaphoreRef &&other) noexcept |
| | Move constructor.
|
| |
|
| ~SemaphoreRef () |
| | Destructor.
|
| |
|
constexpr SemaphoreRef & | operator= (SemaphoreRef other) noexcept |
| | Assignment operator.
|
| |
|
constexpr | operator SemaphoreRaw () const noexcept |
| | Converts to SemaphoreRaw.
|
| |
|
constexpr | Semaphore (std::nullptr_t=nullptr) noexcept |
| | Default ctor.
|
| |
| constexpr | Semaphore (const SemaphoreRaw resource) noexcept |
| | Constructs from SemaphoreRef. More...
|
| |
|
constexpr | Semaphore (const Semaphore &other) noexcept=default |
| | Copy constructor.
|
| |
|
constexpr | Semaphore (Semaphore &&other) noexcept |
| | Move constructor.
|
| |
|
constexpr | Semaphore (const SemaphoreRef &other)=delete |
| |
|
constexpr | Semaphore (SemaphoreRef &&other)=delete |
| |
| | Semaphore (Uint32 initial_value) |
| | Create a semaphore. More...
|
| |
|
constexpr | Semaphore (std::nullptr_t=nullptr) noexcept |
| | Default ctor.
|
| |
| constexpr | Semaphore (const SemaphoreRaw resource) noexcept |
| | Constructs from SemaphoreRef. More...
|
| |
|
constexpr | Semaphore (Semaphore &&other) noexcept |
| | Move constructor.
|
| |
|
constexpr | Semaphore (const SemaphoreRef &other)=delete |
| |
|
constexpr | Semaphore (SemaphoreRef &&other)=delete |
| |
| | Semaphore (Uint32 initial_value) |
| | Create a semaphore. More...
|
| |
|
| ~Semaphore () |
| | Destructor.
|
| |
|
constexpr Semaphore & | operator= (Semaphore &&other) noexcept |
| | Assignment operator.
|
| |
|
constexpr SemaphoreRaw | get () const noexcept |
| | Retrieves underlying SemaphoreRaw.
|
| |
|
constexpr SemaphoreRaw | release () noexcept |
| | Retrieves underlying SemaphoreRaw and clear this.
|
| |
|
constexpr auto | operator<=> (const Semaphore &other) const noexcept=default |
| | Comparison.
|
| |
|
constexpr | operator bool () const noexcept |
| | Converts to bool.
|
| |
| void | Destroy () |
| | Destroy a semaphore. More...
|
| |
| void | Wait () |
| | Wait until a semaphore has a positive value and then decrements it. More...
|
| |
| bool | TryWait () |
| | See if a semaphore has a positive value and decrement it if it does. More...
|
| |
| bool | WaitTimeout (std::chrono::milliseconds timeout) |
| | Wait until a semaphore has a positive value and then decrements it. More...
|
| |
| void | Signal () |
| | Atomically increment a semaphore's value and wake waiting threads. More...
|
| |
| Uint32 | GetValue () const |
| | Get the current value of a semaphore. More...
|
| |
This does not take ownership!