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

呼び出し元スレッドが時間依存としてマークされている場合にデバッガーに割り込みます。

## 構文

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

### パラメーター

なし。

### 戻り値

Type: void

なし。

## 解説

この関数は、呼び出し元のスレッドが *時間依存スレッド* としてマークされている場合にデバッガーに割り込みます。時間依存スレッドでは、ブロッキングや長時間実行される操作を実行してはいけません。時間依存で安全な Gaming Runtime Services (GRTS) API のみが、時間依存スレッドから呼び出せます。詳細については、[Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads) を参照してください。

この関数が時間依存スレッドから呼び出された場合、デバッガーがアタッチされていなければ、この呼び出しは何も行いません。デバッガーがアタッチされている場合、デバッガーに割り込み、次の例のようなデバッグ文字列を出力します。

```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.
***
```

スレッドを時間依存に設定またはクリアするには、[XThreadSetTimeSensitive](/reference/system/xthread/functions/xthreadsettimesensitive) 関数を使用します。この関数は、Gaming Runtime Services (GRTS) API が照会できるスレッド ローカル ストレージ内のビットを設定またはクリアします。

必要に応じて、呼び出し元スレッドが時間依存かどうかを実行時にテストするには、[XThreadIsTimeSensitive](/reference/system/xthread/functions/xthreadistimesensitive) 関数を使用します。

## 要件

**ヘッダー:** XThread.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One 本体、XBOX Series 本体

## 概念ドキュメント

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 関連項目

[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](/ja-jp/reference/system/xthread/xthread_members.md)
- [XThreadIsTimeSensitive](/ja-jp/reference/system/xthread/functions/xthreadistimesensitive.md)
- [XThreadSetTimeSensitive](/ja-jp/reference/system/xthread/functions/xthreadsettimesensitive.md)
- [XDisplayAcquireTimeoutDeferral](/ja-jp/reference/system/xdisplay/functions/xdisplayacquiretimeoutdeferral.md)
- [XDisplayCloseTimeoutDeferralHandle](/ja-jp/reference/system/xdisplay/functions/xdisplayclosetimeoutdeferralhandle.md)
