Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FWindowsPlatformTLS Struct Reference

#include <WindowsPlatformTLS.h>

+ Inheritance diagram for FWindowsPlatformTLS:
+ Collaboration diagram for FWindowsPlatformTLS:

Static Public Member Functions

static FORCEINLINE uint32 GetCurrentThreadId (void)
 
static FORCEINLINE uint32 AllocTlsSlot (void)
 
static FORCEINLINE void SetTlsValue (uint32 SlotIndex, void *Value)
 
static FORCEINLINE voidGetTlsValue (uint32 SlotIndex)
 
static FORCEINLINE void FreeTlsSlot (uint32 SlotIndex)
 
- Static Public Member Functions inherited from FGenericPlatformTLS
static FORCEINLINE bool IsValidTlsSlot (uint32 SlotIndex)
 

Detailed Description

Windows implementation of the TLS OS functions.

Definition at line 13 of file WindowsPlatformTLS.h.

Member Function Documentation

◆ AllocTlsSlot()

static FORCEINLINE uint32 FWindowsPlatformTLS::AllocTlsSlot ( void )
inlinestatic

Allocates a thread local store slot.

Returns
The index of the allocated slot.

Definition at line 31 of file WindowsPlatformTLS.h.

+ Here is the call graph for this function:

◆ FreeTlsSlot()

static FORCEINLINE void FWindowsPlatformTLS::FreeTlsSlot ( uint32 SlotIndex)
inlinestatic

Frees a previously allocated TLS slot

Parameters
SlotIndexthe TLS index to store it in

Definition at line 63 of file WindowsPlatformTLS.h.

+ Here is the call graph for this function:

◆ GetCurrentThreadId()

static FORCEINLINE uint32 FWindowsPlatformTLS::GetCurrentThreadId ( void )
inlinestatic

Returns the currently executing thread's identifier.

Returns
The thread identifier.

Definition at line 21 of file WindowsPlatformTLS.h.

+ Here is the call graph for this function:

◆ GetTlsValue()

static FORCEINLINE void * FWindowsPlatformTLS::GetTlsValue ( uint32 SlotIndex)
inlinestatic

Reads the value stored at the specified TLS slot.

Parameters
SlotIndexThe index of the slot to read.
Returns
The value stored in the slot.

Definition at line 53 of file WindowsPlatformTLS.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetTlsValue()

static FORCEINLINE void FWindowsPlatformTLS::SetTlsValue ( uint32 SlotIndex,
void * Value )
inlinestatic

Sets a value in the specified TLS slot.

Parameters
SlotIndexthe TLS index to store it in.
Valuethe value to store in the slot.

Definition at line 42 of file WindowsPlatformTLS.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this struct was generated from the following file: