A queue of completed asynchronous I/O tasks.
More...
When starting an asynchronous operation, you specify a queue for the new task. A queue can be asked later if any tasks in it have completed, allowing an app to manage multiple pending tasks in one place, in whatever order they complete.
- Since
- This struct is available since SDL 3.2.0.
- See also
- AsyncIOQueue.AsyncIOQueue
-
AsyncIO.Read
-
AsyncIO.Write
-
AsyncIOQueue.GetResult
-
AsyncIOQueue.WaitResult
- Category:
- Resource
◆ AsyncIOQueue() [1/2]
constexpr SDL::AsyncIOQueue::AsyncIOQueue |
( |
const AsyncIOQueueRaw |
resource | ) |
|
|
inlineexplicitconstexpr |
- Parameters
-
resource | a AsyncIOQueueRaw to be wrapped. |
This assumes the ownership, call release() if you need to take back.
◆ AsyncIOQueue() [2/2]
SDL::AsyncIOQueue::AsyncIOQueue |
( |
| ) |
|
|
inline |
Async I/O operations are assigned to a queue when started. The queue can be checked for completed tasks thereafter.
- Postcondition
- a new task queue object or nullptr if there was an error; call GetError() for more information.
- Thread safety:
- It is safe to call this function from any thread.
- Since
- This function is available since SDL 3.2.0.
- See also
- AsyncIOQueue.Destroy
-
AsyncIOQueue.GetResult
-
AsyncIOQueue.WaitResult
The documentation for this class was generated from the following file: