mirror of
https://github.com/bkaradzic/bx.git
synced 2026-10-29 12:05:42 +00:00
Changed TlsData::get to read TLS slots directly from TEB on Windows x86/x64. (#461)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user