> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XThreadIsTimeSensitive

> XThreadIsTimeSensitive

# XThreadIsTimeSensitive

Indicates whether the calling thread is marked as time-sensitive.

## Syntax

```cpp theme={null}
bool XThreadIsTimeSensitive(  
)  
```

### Parameters

None.

### Return value

Type: bool

Returns `true` if the calling thread is marked as time-sensitive; otherwise, `false`.

## Remarks

This function indicates if the calling thread is set 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](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).

Use the [XThreadSetTimeSensitive](/reference/system/xthread/functions/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 [XThreadAssertNotTimeSensitive](/reference/system/xthread/functions/xthreadassertnottimesensitive) function at the beginning of methods that aren't time-sensitive, to break into the debugger if the method is called on a thread that's time-sensitive.

## Requirements

**Header:** XThread.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XThread](/reference/system/xthread/xthread_members)\
[Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)


## Related topics

- [XThread](/reference/system/xthread/xthread_members.md)
- [XThreadSetTimeSensitive](/reference/system/xthread/functions/xthreadsettimesensitive.md)
- [XThreadAssertNotTimeSensitive](/reference/system/xthread/functions/xthreadassertnottimesensitive.md)
- [XGameProtocolUnregisterForActivation (deprecated)](/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameStreamingUninitialize](/reference/system/xgamestreaming/functions/xgamestreaminguninitialize.md)
