> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/ja-jp/reference/system/xthread/functions/xthreadsettimesensitive.md) 関数を使用します。この関数は、Gaming Runtime Services (GRTS) API が照会できるスレッド ローカル ストレージ内のビットを設定またはクリアします。

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

## 要件

**ヘッダー:** 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](https://docs.xbox.com/ja-jp/reference/system/xthread/xthread_members.md)\
[Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)


## Related topics

- [XThreadIsTimeSensitive](https://docs.xbox.com/ja-jp/reference/system/xthread/functions/xthreadistimesensitive.md)
- [XThread (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xthread/xthread_members.md)
- [XThreadSetTimeSensitive](https://docs.xbox.com/ja-jp/reference/system/xthread/functions/xthreadsettimesensitive.md)
- [XDisplayCloseTimeoutDeferralHandle](https://docs.xbox.com/ja-jp/reference/system/xdisplay/functions/xdisplayclosetimeoutdeferralhandle.md)
- [XGameSaveReadBlobData](https://docs.xbox.com/ja-jp/reference/system/xgamesave/functions/xgamesavereadblobdata.md)
