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


Public Member Functions | |
| AsyncIOQueueRef (AsyncIOQueueParam resource) noexcept | |
| Constructs from AsyncIOQueueParam. More... | |
| AsyncIOQueueRef (AsyncIOQueueRaw resource) noexcept | |
| Constructs from AsyncIOQueueParam. More... | |
| constexpr | AsyncIOQueueRef (const AsyncIOQueueRef &other) noexcept=default |
| Copy constructor. | |
| ~AsyncIOQueueRef () | |
| Destructor. | |
| constexpr | AsyncIOQueue (std::nullptr_t) noexcept |
| Default ctor. | |
| constexpr | AsyncIOQueue (const AsyncIOQueueRaw resource) noexcept |
| Constructs from AsyncIOQueueParam. More... | |
| constexpr | AsyncIOQueue (const AsyncIOQueue &other) noexcept=default |
| Copy constructor. | |
| constexpr | AsyncIOQueue (AsyncIOQueue &&other) noexcept |
| 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... | |
Public Member Functions inherited from SDL::AsyncIOQueue | |
| constexpr | AsyncIOQueue (std::nullptr_t) noexcept |
| Default ctor. | |
| constexpr | AsyncIOQueue (const AsyncIOQueueRaw resource) noexcept |
| Constructs from AsyncIOQueueParam. More... | |
| constexpr | AsyncIOQueue (AsyncIOQueue &&other) noexcept |
| 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. | |
| constexpr AsyncIOQueue & | operator= (AsyncIOQueue &&other) noexcept |
| Assignment operator. | |
| constexpr AsyncIOQueueRaw | get () const noexcept |
| Retrieves underlying AsyncIOQueueRaw. | |
| constexpr AsyncIOQueueRaw | release () noexcept |
| Retrieves underlying AsyncIOQueueRaw and clear this. | |
| constexpr auto | operator<=> (const AsyncIOQueue &other) const noexcept=default |
| Comparison. | |
| constexpr | operator bool () const noexcept |
| Converts to bool. | |
| constexpr | operator AsyncIOQueueParam () const noexcept |
| 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... | |
Additional Inherited Members | |
Protected Member Functions inherited from SDL::AsyncIOQueue | |
| constexpr | AsyncIOQueue (const AsyncIOQueue &other) noexcept=default |
| Copy constructor. | |
| constexpr AsyncIOQueue & | operator= (const AsyncIOQueue &other) noexcept=default |
| Assignment operator. | |
|
inlinenoexcept |
| resource | a AsyncIOQueueRaw or AsyncIOQueue. |
This does not takes ownership!
|
inlinenoexcept |
| resource | a AsyncIOQueueRaw or AsyncIOQueue. |
This does not takes ownership!
|
inline |
Async I/O operations are assigned to a queue when started. The queue can be checked for completed tasks thereafter.
|
inlineexplicitconstexprnoexcept |
| resource | a AsyncIOQueueRaw to be wrapped. |
This assumes the ownership, call release() if you need to take back.