Partager via


XTaskQueueTerminatedCallback

A callback that is invoked when a task queue is terminated.

Syntax

void XTaskQueueTerminatedCallback(  
         void* context  
)  

Parameters

context   _In_opt_
Type: void*

Optional. A context pointer that was passed during XTaskQueueTerminate.

Return value

Type: void

Remarks

XTaskQueueTerminatedCallback represents a callback intended for use with the XTaskQueueTerminate function. If an XTaskQueueTerminatedCallback callback is specified while invoking XTaskQueueTerminate, this callback is invoked by the task queue after both the work port and completion port have been marked for termination, but before the ports and the task queue itself are released. The callback is queued to the completion port of the task queue, and dispatched even if no other tasks are currently queued by the task queue.

Requirements

Header: XTaskQueue.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XTaskQueueMonitorCallback
XTaskQueueTerminate
XTaskQueue members
Asynchronous Programming Model
Async Task Queue design