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

# XThreadAssertNotTimeSensitive

> XThreadAssertNotTimeSensitive

# XThreadAssertNotTimeSensitive

Interrompe no depurador se o thread de chamada estiver marcado como sensível ao tempo.

## Sintaxe

```cpp theme={null}
void XThreadAssertNotTimeSensitive(  
)  
```

### Parâmetros

Nenhum.

### Valor retornado

Tipo: void

Nenhum.

## Comentários

Esta função interrompe no depurador se o thread de chamada estiver marcado 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).

Se esta função for chamada de um thread sensível ao tempo e nenhum depurador estiver anexado, a chamada não fará nada. Se um depurador estiver anexado, ela interromperá no depurador e gerará uma cadeia de caracteres de depuração semelhante ao exemplo a seguir.

```dos theme={null}
***
*** Time Sensitive Thread Violation ***
***
*** This thread is marked as Time Sensitive and is calling an API that is
*** not time-sensitive-safe.
***
*** To disable these breakpoints globally, set byte at
*** enable_time_sensitive_asserts (0x00000000) to 0.
***
```

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 [XThreadIsTimeSensitive](/pt-BR/reference/system/xthread/functions/xthreadistimesensitive) para testar em tempo de execução, conforme necessário, se o thread de chamada é 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

## Documentação conceitual

* [Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

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

- [XThreadAssertNotTimeSensitive](/reference/system/xthread/functions/xthreadassertnottimesensitive.md)
- [XThread](/reference/system/xthread/xthread_members.md)
- [XThreadIsTimeSensitive](/reference/system/xthread/functions/xthreadistimesensitive.md)
- [XThreadSetTimeSensitive](/reference/system/xthread/functions/xthreadsettimesensitive.md)
