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

# XThreadIsTimeSensitive

> XThreadIsTimeSensitive

# XThreadIsTimeSensitive

呼び出し元のスレッドが時間依存としてマークされているかどうかを示します。

## 構文

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

### パラメーター

なし。

### 戻り値

Type: bool

呼び出し元のスレッドが時間依存としてマークされている場合は `true` を、それ以外の場合は `false` を返します。

## 解説

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

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

時間依存でないメソッドの先頭で [XThreadAssertNotTimeSensitive](https://docs.xbox.com/ja-jp/reference/system/xthread/functions/xthreadassertnottimesensitive.md) 関数を使用すると、そのメソッドが時間依存スレッドから呼び出された場合にデバッガーに割り込むことができます。

## 要件

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

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

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

## 関連項目

[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

- [XThreadSetTimeSensitive](https://docs.xbox.com/ja-jp/reference/system/xthread/functions/xthreadsettimesensitive.md)
- [XThreadAssertNotTimeSensitive](https://docs.xbox.com/ja-jp/reference/system/xthread/functions/xthreadassertnottimesensitive.md)
- [XThread (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xthread/xthread_members.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)
