Fix SDL_TryLockMutex compile error when FAKE_RECURSIVE_MUTEX is defined
authorAndreas Schiffler <aschiffler@ferzkopp.net>
Sat, 09 Mar 2013 09:24:43 -0800
changeset 6985 a0f905ecdda3
parent 6984 ae9c4b12f3e2
child 6986 bc887debed9b
Fix SDL_TryLockMutex compile error when FAKE_RECURSIVE_MUTEX is defined
src/thread/pthread/SDL_sysmutex.c
--- a/src/thread/pthread/SDL_sysmutex.c	Fri Mar 08 23:33:07 2013 -0800
+++ b/src/thread/pthread/SDL_sysmutex.c	Sat Mar 09 09:24:43 2013 -0800
@@ -134,7 +134,7 @@
     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.