Skip to content

Processthread management

Threads:#

Get Current Thread ID:

  • FPlatformTLS::GetCurrentThreadId()

Deal with Thread Local Storage/TLS: FGenericPlatformTLS()

  • Provides allocation, deallocation, etc

  • TlsSlot = FPlatformTLS::AllocTlsSlot()

  • Reinterpret_cast<bla*>(FPlatformTLS::GetTlsValue(TlsSlot))

  • FPlatformTLS::SetTlsValue(TlsSlot, bladata);