src/thread/SDL_thread.c
changeset 6977 b73d51026c68
parent 6885 700f1b25f77f
child 7191 75360622e65f
     1.1 --- a/src/thread/SDL_thread.c	Thu Mar 07 15:37:08 2013 -0800
     1.2 +++ b/src/thread/SDL_thread.c	Thu Mar 07 20:12:40 2013 -0800
     1.3 @@ -85,7 +85,7 @@
     1.4              return;
     1.5          }
     1.6      }
     1.7 -    SDL_mutexP(thread_lock);
     1.8 +    SDL_LockMutex(thread_lock);
     1.9  
    1.10      /* Expand the list of threads, if necessary */
    1.11  #ifdef DEBUG_THREADS
    1.12 @@ -118,7 +118,7 @@
    1.13      if (!thread_lock) {
    1.14          return;
    1.15      }
    1.16 -    SDL_mutexP(thread_lock);
    1.17 +    SDL_LockMutex(thread_lock);
    1.18      for (i = 0; i < SDL_numthreads; ++i) {
    1.19          if (thread == SDL_Threads[i]) {
    1.20              break;
    1.21 @@ -164,7 +164,7 @@
    1.22          SDL_threadID this_thread;
    1.23  
    1.24          this_thread = SDL_ThreadID();
    1.25 -        SDL_mutexP(thread_lock);
    1.26 +        SDL_LockMutex(thread_lock);
    1.27          for (i = 0; i < SDL_numthreads; ++i) {
    1.28              if (this_thread == SDL_Threads[i]->threadid) {
    1.29                  errbuf = &SDL_Threads[i]->errbuf;