src/thread/SDL_thread.c
changeset 6977 b73d51026c68
parent 6885 700f1b25f77f
child 7191 75360622e65f
--- a/src/thread/SDL_thread.c	Thu Mar 07 15:37:08 2013 -0800
+++ b/src/thread/SDL_thread.c	Thu Mar 07 20:12:40 2013 -0800
@@ -85,7 +85,7 @@
             return;
         }
     }
-    SDL_mutexP(thread_lock);
+    SDL_LockMutex(thread_lock);
 
     /* Expand the list of threads, if necessary */
 #ifdef DEBUG_THREADS
@@ -118,7 +118,7 @@
     if (!thread_lock) {
         return;
     }
-    SDL_mutexP(thread_lock);
+    SDL_LockMutex(thread_lock);
     for (i = 0; i < SDL_numthreads; ++i) {
         if (thread == SDL_Threads[i]) {
             break;
@@ -164,7 +164,7 @@
         SDL_threadID this_thread;
 
         this_thread = SDL_ThreadID();
-        SDL_mutexP(thread_lock);
+        SDL_LockMutex(thread_lock);
         for (i = 0; i < SDL_numthreads; ++i) {
             if (this_thread == SDL_Threads[i]->threadid) {
                 errbuf = &SDL_Threads[i]->errbuf;