Navigation
API > API/Runtime > API/Runtime/Core
Unix implementation of the TLS OS functions
| Name | FUnixTLS |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Unix/UnixPlatformTLS.h |
| Include Path | #include "Unix/UnixPlatformTLS.h" |
Syntax
struct FUnixTLS : public FGenericPlatformTLS
Inheritance Hierarchy
- FGenericPlatformTLS → FUnixTLS
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ThreadIdTLSKey | uint32 | TLS key to store TID | Unix/UnixPlatformTLS.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint32 AllocTlsSlot() |
Allocates a thread local store slot | Unix/UnixPlatformTLS.h | |
static void ClearThreadIdTLS() |
Unix/UnixPlatformTLS.h | ||
static void FreeTlsSlot
(
uint32 SlotIndex |
Frees a previously allocated TLS slot | Unix/UnixPlatformTLS.h | |
static uint32 GetCurrentThreadId() |
Returns the currently executing thread's id | Unix/UnixPlatformTLS.h | |
static void * GetTlsValue
(
uint32 SlotIndex |
Reads the value stored at the specified TLS slot | Unix/UnixPlatformTLS.h | |
static void SetTlsValue
(
uint32 SlotIndex, |
Sets a value in the specified TLS slot | Unix/UnixPlatformTLS.h |