mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 15:26:55 -05:00
Fix SDL_TryLockMutex compile error when FAKE_RECURSIVE_MUTEX is defined
This commit is contained in:
parent
449a8da224
commit
1673a640c3
|
|
@ -134,7 +134,7 @@ SDL_TryLockMutex(SDL_mutex * mutex)
|
|||
retval = 0;
|
||||
#if FAKE_RECURSIVE_MUTEX
|
||||
this_thread = pthread_self();
|
||||
if (mutex->owner == this_thead) {
|
||||
if (mutex->owner == this_thread) {
|
||||
++mutex->recursive;
|
||||
} else {
|
||||
/* The order of operations is important.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user