> ## 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

Indica se o thread de chamada está marcado como sensível ao tempo.

## Sintaxe

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

### Parâmetros

Nenhum.

### Valor retornado

Tipo: bool

Retorna `true` se o thread de chamada estiver marcado como sensível ao tempo; caso contrário, `false`.

## Comentários

Esta função indica se o thread de chamada está definido como um *thread sensível ao tempo*, no qual operações de bloqueio ou de longa duração não devem ser executadas. Somente APIs do Gaming Runtime Services (GRTS) que são seguras para threads sensíveis ao tempo podem ser chamadas em um thread sensível ao tempo. Para obter mais informações, consulte [Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).

Use a função [XThreadSetTimeSensitive](/pt-BR/reference/system/xthread/functions/xthreadsettimesensitive) para definir ou limpar um thread como sensível ao tempo. Esta função define ou limpa um bit no armazenamento local de thread que pode ser consultado pelas APIs do Gaming Runtime Services (GRTS).

Use a função [XThreadAssertNotTimeSensitive](/pt-BR/reference/system/xthread/functions/xthreadassertnottimesensitive) no início de métodos que não são sensíveis ao tempo, para interromper no depurador se o método for chamado em um thread sensível ao tempo.

## Requisitos

**Cabeçalho:** XThread.h

**Biblioteca:** xgameruntime.lib

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[XThread](/pt-BR/reference/system/xthread/xthread_members)\
[Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)


## Related topics

- [XThread](/pt-BR/reference/system/xthread/xthread_members.md)
- [XThreadSetTimeSensitive](/pt-BR/reference/system/xthread/functions/xthreadsettimesensitive.md)
- [XThreadAssertNotTimeSensitive](/pt-BR/reference/system/xthread/functions/xthreadassertnottimesensitive.md)
- [Metas de design e melhorias da programação assíncrona](/pt-BR/build/core-features/common/async/async-whitepaper.md)
- [XDisplayAcquireTimeoutDeferral](/pt-BR/reference/system/xdisplay/functions/xdisplayacquiretimeoutdeferral.md)
