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

# XGLeaveExclusiveLock (XBOX One 系列)

> 離開獨佔鎖定，此鎖定用來同步處理 XGSetHardwareVersion 的呼叫與 XG 紋理計算器的建立。

離開獨佔鎖定，此鎖定用來同步處理 XGSetHardwareVersion 的呼叫與 XG 紋理計算器的建立。

<a id="syntaxSection" />

## 語法

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

<a id="ID4EG" />

### 傳回值

無。

<a id="remarks" />

## 備註

使用 [XGEnterExclusiveLock](/zh-TW/reference/graphics/xg__NR/functions/xgenterexclusivelock) 和 **LeaveExclusiveLock** API 手動取得和釋放 XG 關鍵區段。如果已停用獨佔鎖定，這些 API 沒有作用，且 **XGEnterExclusiveLock** 會傳回 **false**。

<a id="requirements" />

## 需求

**標頭：** xg.h

**程式庫：** xg\_x.lib

**支援的平台：** XBOX One 系列

## 另請參閱

[XG 參考](/zh-TW/reference/graphics/xg__NR/xg_members)\
[XGEnableExclusiveLocking](/zh-TW/reference/graphics/xg__NR/functions/xgenableexclusivelocking)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XBOX One 與 XBOX Series X|S GDK 工具](/zh-TW/tools/tools-console/tools-sdk.md)
- [Lobby.Leave](/zh-TW/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/Lobby/Leave.md)
- [Leave Lobby](/api-reference/lobby/leave-lobby.md)
- [XBOX 遊戲開發文件](/zh-TW/index.md)
