Changed TlsData::get to read TLS slots directly from TEB on Windows x86/x64. (#461)

This commit is contained in:
Branimir Karadžić
2026-10-15 17:36:45 -07:00
committed by GitHub
parent 983e0b9af7
commit c75bc2f956
4 changed files with 170 additions and 0 deletions
+2
View File
@@ -358,11 +358,13 @@ namespace bx
BX_ASSERT(0 != result, "Failed to free TLS index (err: 0x%08x).", GetLastError() ); BX_UNUSED(result);
}
#if !BX_TLS_DATA_TEB
void* TlsData::get() const
{
TlsDataInternal* ti = (TlsDataInternal*)m_internal;
return TlsGetValue(ti->m_id);
}
#endif // !BX_TLS_DATA_TEB
void TlsData::set(void* _ptr)
{