Skip to main content

XThreadAssertNotTimeSensitive

Breaks into the debugger if the calling thread is marked as time sensitive.

Syntax

Parameters

None.

Return value

Type: void None.

Remarks

This function breaks into the debugger if the calling thread is marked as a time-sensitive thread, on which blocking or long-running operations should not be performed. Only Gaming Runtime Services (GRTS) APIs that are time-sensitive–safe can be called on a time-sensitive thread. For more information, see Time-sensitive threads. If this function is called from a time-sensitive thread and no debugger is attached, then the call does nothing. If a debugger is attached, it will break into the debugger and output a debug string similar to the following example.
Use the XThreadSetTimeSensitive function to set or clear a thread as time-sensitive. This function sets or clears a bit in thread local storage that can be queried by Gaming Runtime Services (GRTS) APIs. Use the XThreadIsTimeSensitive function to test at runtime, as needed, whether the calling thread is time-sensitive.

Requirements

Header: XThread.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

XThread
Time-sensitive threads
Last modified on August 20, 2026