XTaskQueueCreate
Creates a task queue, which can be used to queue and dispatch calls.Syntax
Parameters
workDispatchMode _In_Type: XTaskQueueDispatchMode The dispatch mode for the “work” port of the queue. completionDispatchMode _In_
Type: XTaskQueueDispatchMode The dispatch mode for the “completion” port of the queue. queue _Out_
Type: XTaskQueueHandle* The newly created queue.
Return value
Type: HRESULT HRESULT success or error code.Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
SubmitCallback is a helper function that is defined in the code example for the XTaskQueueSubmitCallback function.
SubmitCallback is a helper function that is defined in the code example for the XTaskQueueSubmitCallback function.
Requirements
Header: XTaskQueue.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
- Create task queue
- XTaskQueue library overview
- Asynchronous Programming Model
- Asynchronous programming design goals and improvements
- Time-sensitive threads
See also
XTaskQueue membersAsynchronous Programming Model
Async Task Queue Design
