Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FThreadSingletonInitializer Class Reference

#include <ThreadSingleton.h>

Static Public Member Functions

static FTlsAutoCleanupGet (TFunctionRef< FTlsAutoCleanup *()> CreateInstance, uint32 &TlsSlot)
 
static FTlsAutoCleanupTryGet (uint32 &TlsSlot)
 
static FTlsAutoCleanupInject (FTlsAutoCleanup *Instance, uint32 &TlsSlot)
 

Detailed Description

Thread singleton initializer.

Definition at line 15 of file ThreadSingleton.h.

Member Function Documentation

◆ Get()

static FTlsAutoCleanup * FThreadSingletonInitializer::Get ( TFunctionRef< FTlsAutoCleanup *()> CreateInstance,
uint32 & TlsSlot )
static
Returns
an instance of a singleton for the current thread.

◆ Inject()

static FTlsAutoCleanup * FThreadSingletonInitializer::Inject ( FTlsAutoCleanup * Instance,
uint32 & TlsSlot )
static
Returns
sets the TLS store to the instance and returns the previous instance.

◆ TryGet()

static FTlsAutoCleanup * FThreadSingletonInitializer::TryGet ( uint32 & TlsSlot)
static
Returns
an instance of the singleton if it exists on the current thread.

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