SDL3pp
A slim C++ wrapper for SDL3
|
Semi-safe reference for AsyncIOQueue.
Public Member Functions | |
AsyncIOQueueRef (AsyncIOQueueParam resource) | |
Constructs from AsyncIOQueueParam. More... | |
AsyncIOQueueRef (const AsyncIOQueueRef &other) | |
Copy constructor. | |
~AsyncIOQueueRef () | |
Destructor. | |
![]() | |
constexpr | AsyncIOQueue (const AsyncIOQueueRaw resource) |
Constructs from AsyncIOQueueParam. More... | |
constexpr | AsyncIOQueue (const AsyncIOQueue &other)=delete |
Copy constructor. | |
constexpr | AsyncIOQueue (AsyncIOQueue &&other) |
Move constructor. | |
constexpr | AsyncIOQueue (const AsyncIOQueueRef &other)=delete |
constexpr | AsyncIOQueue (AsyncIOQueueRef &&other)=delete |
AsyncIOQueue () | |
Create a task queue for tracking multiple I/O operations. More... | |
~AsyncIOQueue () | |
Destructor. | |
AsyncIOQueue & | operator= (AsyncIOQueue other) |
Assignment operator. | |
constexpr AsyncIOQueueRaw | get () const |
Retrieves underlying AsyncIOQueueRaw. | |
constexpr AsyncIOQueueRaw | release () |
Retrieves underlying AsyncIOQueueRaw and clear this. | |
constexpr auto | operator<=> (const AsyncIOQueue &other) const =default |
Comparison. | |
constexpr bool | operator== (std::nullptr_t _) const |
Comparison. | |
constexpr | operator bool () const |
Converts to bool. | |
constexpr | operator AsyncIOQueueParam () const |
Converts to AsyncIOQueueParam. | |
void | Destroy () |
Destroy a previously-created async I/O task queue. More... | |
std::optional< AsyncIOOutcome > | GetResult () |
Query an async I/O task queue for completed tasks. More... | |
std::optional< AsyncIOOutcome > | WaitResult (Milliseconds timeout) |
Block until an async I/O task queue has a completed task. More... | |
std::optional< AsyncIOOutcome > | WaitResult () |
Block until an async I/O task queue has a completed task. More... | |
void | Signal () |
Wake up any threads that are blocking in AsyncIOQueue.WaitResult(). More... | |
|
inline |
resource | a AsyncIOQueueRaw or AsyncIOQueue. |
This does not takes ownership!