Semi-safe reference for Semaphore.
|
| | SemaphoreRef (SemaphoreParam resource) |
| | Constructs from SemaphoreParam. More...
|
| |
|
| SemaphoreRef (const SemaphoreRef &other) |
| | Copy constructor.
|
| |
|
| ~SemaphoreRef () |
| | Destructor.
|
| |
|
constexpr | Semaphore ()=default |
| | Default ctor.
|
| |
| constexpr | Semaphore (const SemaphoreRaw resource) |
| | Constructs from SemaphoreParam. More...
|
| |
|
constexpr | Semaphore (const Semaphore &other)=delete |
| | Copy constructor.
|
| |
|
constexpr | Semaphore (Semaphore &&other) |
| | Move constructor.
|
| |
|
constexpr | Semaphore (const SemaphoreRef &other)=delete |
| |
|
constexpr | Semaphore (SemaphoreRef &&other)=delete |
| |
| | Semaphore (Uint32 initial_value) |
| | Create a semaphore. More...
|
| |
|
| ~Semaphore () |
| | Destructor.
|
| |
|
Semaphore & | operator= (Semaphore other) |
| | Assignment operator.
|
| |
|
constexpr SemaphoreRaw | get () const |
| | Retrieves underlying SemaphoreRaw.
|
| |
|
constexpr SemaphoreRaw | release () |
| | Retrieves underlying SemaphoreRaw and clear this.
|
| |
|
constexpr auto | operator<=> (const Semaphore &other) const =default |
| | Comparison.
|
| |
|
constexpr bool | operator== (std::nullptr_t _) const |
| | Comparison.
|
| |
|
constexpr | operator bool () const |
| | Converts to bool.
|
| |
|
constexpr | operator SemaphoreParam () const |
| | Converts to SemaphoreParam.
|
| |
| 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...
|
| |
◆ SemaphoreRef()
- Parameters
-
This does not takes ownership!
The documentation for this struct was generated from the following file: