|
SDL3pp
A slim C++ wrapper for SDL3
|
Semi-safe reference for Condition.


Public Member Functions | |
| ConditionRef (ConditionParam resource) noexcept | |
| Constructs from ConditionParam. More... | |
| ConditionRef (ConditionRaw resource) noexcept | |
| Constructs from ConditionParam. More... | |
| ConditionRef (const ConditionRef &other) noexcept | |
| Copy constructor. | |
| ~ConditionRef () | |
| Destructor. | |
| constexpr | Condition (std::nullptr_t) noexcept |
| Default ctor. | |
| constexpr | Condition (const ConditionRaw resource) noexcept |
| Constructs from ConditionParam. More... | |
| constexpr | Condition (const Condition &other)=delete |
| Copy constructor. | |
| constexpr | Condition (Condition &&other) noexcept |
| Move constructor. | |
| constexpr | Condition (const ConditionRef &other)=delete |
| constexpr | Condition (ConditionRef &&other)=delete |
| Condition () | |
| Create a condition variable. More... | |
Public Member Functions inherited from SDL::Condition | |
| constexpr | Condition (std::nullptr_t) noexcept |
| Default ctor. | |
| constexpr | Condition (const ConditionRaw resource) noexcept |
| Constructs from ConditionParam. More... | |
| constexpr | Condition (const Condition &other)=delete |
| Copy constructor. | |
| constexpr | Condition (Condition &&other) noexcept |
| Move constructor. | |
| constexpr | Condition (const ConditionRef &other)=delete |
| constexpr | Condition (ConditionRef &&other)=delete |
| Condition () | |
| Create a condition variable. More... | |
| ~Condition () | |
| Destructor. | |
| constexpr Condition & | operator= (Condition &&other) noexcept |
| Assignment operator. | |
| constexpr ConditionRaw | get () const noexcept |
| Retrieves underlying ConditionRaw. | |
| constexpr ConditionRaw | release () noexcept |
| Retrieves underlying ConditionRaw and clear this. | |
| constexpr auto | operator<=> (const Condition &other) const noexcept=default |
| Comparison. | |
| constexpr | operator bool () const noexcept |
| Converts to bool. | |
| constexpr | operator ConditionParam () const noexcept |
| Converts to ConditionParam. | |
| void | Destroy () |
| Destroy a condition variable. More... | |
| void | Signal () |
| Restart one of the threads that are waiting on the condition variable. More... | |
| void | Broadcast () |
| Restart all threads that are waiting on the condition variable. More... | |
| void | Wait (MutexParam mutex) |
| Wait until a condition variable is signaled. More... | |
| bool | WaitTimeout (MutexParam mutex, std::chrono::milliseconds timeout) |
| Wait until a condition variable is signaled or a certain time has passed. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SDL::Condition | |
| constexpr Condition & | operator= (const Condition &other) noexcept=default |
| Assignment operator. | |
|
inlinenoexcept |
| resource | a ConditionRaw or Condition. |
This does not takes ownership!
|
inlinenoexcept |
| resource | a ConditionRaw or Condition. |
This does not takes ownership!
|
inline |
|
inlineexplicitconstexprnoexcept |
| resource | a ConditionRaw to be wrapped. |
This assumes the ownership, call release() if you need to take back.