FUnixTLS

Unix implementation of the TLS OS functions

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Unix/UnixPlatformTLS.h

Include

#include "Unix/UnixPlatformTLS.h"

Syntax

struct FUnixTLS : public FGenericPlatformTLS

Remarks

Unix implementation of the TLS OS functions

Functions

Name Description

Public function Static

uint32

 

AllocTlsSlot()

Allocates a thread local store slot

Public function Static

void

 

ClearThreadIdTLS()

Public function Static

void

 

FreeTlsSlot

(
    uint32 SlotIndex
)

Frees a previously allocated TLS slot

Public function Static

uint32

 

GetCurrentThreadId()

Returns the currently executing thread's id

Public function Static

void *

 

GetTlsValue

(
    uint32 SlotIndex
)

Reads the value stored at the specified TLS slot

Public function Static

void

 

SetTlsValue

(
    uint32 SlotIndex,
    void* Value
)

Sets a value in the specified TLS slot

Constants

Name

Description

ThreadIdTLSKey

TLS key to store TID

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss