Fix SDL_TryLockMutex compile error when FAKE_RECURSIVE_MUTEX is defined
This commit is contained in:
parent
edbf26b139
commit
c51712467d
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ SDL_TryLockMutex(SDL_mutex * mutex)
|
||||||
retval = 0;
|
retval = 0;
|
||||||
#if FAKE_RECURSIVE_MUTEX
|
#if FAKE_RECURSIVE_MUTEX
|
||||||
this_thread = pthread_self();
|
this_thread = pthread_self();
|
||||||
if (mutex->owner == this_thead) {
|
if (mutex->owner == this_thread) {
|
||||||
++mutex->recursive;
|
++mutex->recursive;
|
||||||
} else {
|
} else {
|
||||||
/* The order of operations is important.
|
/* The order of operations is important.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue