14#if defined(_GNU_SOURCE)
15 #include <sys/syscall.h>
29#if defined(_GNU_SOURCE)
39 static_assert(
sizeof(
pid_t) <=
sizeof(
uint32),
"pid_t is larger than uint32, reconsider implementation of GetCurrentThreadId()");
41 checkf(
ThreadIdTLS != 0,
TEXT(
"ThreadId is 0 - reconsider implementation of GetCurrentThreadId() (syscall changed?)"));
51 static_assert(
sizeof(
uint32) ==
sizeof(
pthread_t),
"pthread_t cannot be converted to uint32 one to one - different number of bits. Review FUnixTLS::GetCurrentThreadId() implementation.");
#define checkf(expr, format,...)
Definition AssertionMacros.h:315
@ INDEX_NONE
Definition CoreMiscDefines.h:150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition UnixPlatformTLS.h:22
static void ClearThreadIdTLS(void)
Definition UnixPlatformTLS.h:56
static uint32 GetCurrentThreadId(void)
Definition UnixPlatformTLS.h:26
static UE_FORCEINLINE_HINT void SetTlsValue(uint32 SlotIndex, void *Value)
Definition UnixPlatformTLS.h:107
static UE_FORCEINLINE_HINT void FreeTlsSlot(uint32 SlotIndex)
Definition UnixPlatformTLS.h:127
static uint32 AllocTlsSlot(void)
Definition UnixPlatformTLS.h:68
static UE_FORCEINLINE_HINT void * GetTlsValue(uint32 SlotIndex)
Definition UnixPlatformTLS.h:117