Windows implementation of the TLS OS functions.
更多...
#include <WindowsPlatformTLS.h>
|
| static FORCEINLINE uint32 | AllocTlsSlot (void) |
| | Allocates a thread local store slot. 更多...
|
| |
| static FORCEINLINE void | FreeTlsSlot (uint32 SlotIndex) |
| | Frees a previously allocated TLS slot 更多...
|
| |
| static FORCEINLINE uint32 | GetCurrentThreadId (void) |
| | Returns the currently executing thread's identifier. 更多...
|
| |
| static FORCEINLINE void * | GetTlsValue (uint32 SlotIndex) |
| | Reads the value stored at the specified TLS slot. 更多...
|
| |
| static FORCEINLINE void | SetTlsValue (uint32 SlotIndex, void *Value) |
| | Sets a value in the specified TLS slot. 更多...
|
| |
| static FORCEINLINE bool | IsValidTlsSlot (uint32 SlotIndex) |
| | Return false if this is an invalid TLS slot 更多...
|
| |
Windows implementation of the TLS OS functions.
◆ AllocTlsSlot()
| static FORCEINLINE uint32 FWindowsPlatformTLS::AllocTlsSlot |
( |
void |
| ) |
|
|
inlinestatic |
Allocates a thread local store slot.
- 返回
- The index of the allocated slot.
◆ FreeTlsSlot()
| static FORCEINLINE void FWindowsPlatformTLS::FreeTlsSlot |
( |
uint32 |
SlotIndex | ) |
|
|
inlinestatic |
Frees a previously allocated TLS slot
- 参数
-
| SlotIndex | the TLS index to store it in |
◆ GetCurrentThreadId()
| static FORCEINLINE uint32 FWindowsPlatformTLS::GetCurrentThreadId |
( |
void |
| ) |
|
|
inlinestatic |
Returns the currently executing thread's identifier.
- 返回
- The thread identifier.
◆ GetTlsValue()
| static FORCEINLINE void * FWindowsPlatformTLS::GetTlsValue |
( |
uint32 |
SlotIndex | ) |
|
|
inlinestatic |
Reads the value stored at the specified TLS slot.
- 参数
-
| SlotIndex | The index of the slot to read. |
- 返回
- The value stored in the slot.
◆ SetTlsValue()
| static FORCEINLINE void FWindowsPlatformTLS::SetTlsValue |
( |
uint32 |
SlotIndex, |
|
|
void * |
Value |
|
) |
| |
|
inlinestatic |
Sets a value in the specified TLS slot.
- 参数
-
| SlotIndex | the TLS index to store it in. |
| Value | the value to store in the slot. |
该结构体的文档由以下文件生成: