mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
tls: wrap reference to a mutex into an #if !SDL_THREADS_DISABLED test.
This commit is contained in:
parent
dbdbae44c5
commit
7d02248cf5
@ -141,10 +141,10 @@ SDL_Generic_GetTLSData(void)
|
|||||||
}
|
}
|
||||||
SDL_AtomicUnlock(&tls_lock);
|
SDL_AtomicUnlock(&tls_lock);
|
||||||
}
|
}
|
||||||
#endif /* SDL_THREADS_DISABLED */
|
|
||||||
|
|
||||||
SDL_MemoryBarrierAcquire();
|
SDL_MemoryBarrierAcquire();
|
||||||
SDL_LockMutex(SDL_generic_TLS_mutex);
|
SDL_LockMutex(SDL_generic_TLS_mutex);
|
||||||
|
#endif /* SDL_THREADS_DISABLED */
|
||||||
|
|
||||||
for (entry = SDL_generic_TLS; entry; entry = entry->next) {
|
for (entry = SDL_generic_TLS; entry; entry = entry->next) {
|
||||||
if (entry->thread == thread) {
|
if (entry->thread == thread) {
|
||||||
storage = entry->storage;
|
storage = entry->storage;
|
||||||
|
Loading…
Reference in New Issue
Block a user