src/atomic/SDL_spinlock.c
changeset 6977 b73d51026c68
parent 6885 700f1b25f77f
child 7191 75360622e65f
child 8460 f483e8bdae3c
     1.1 --- a/src/atomic/SDL_spinlock.c	Thu Mar 07 15:37:08 2013 -0800
     1.2 +++ b/src/atomic/SDL_spinlock.c	Thu Mar 07 20:12:40 2013 -0800
     1.3 @@ -41,13 +41,13 @@
     1.4          /* Race condition on first lock... */
     1.5          _spinlock_mutex = SDL_CreateMutex();
     1.6      }
     1.7 -    SDL_mutexP(_spinlock_mutex);
     1.8 +    SDL_LockMutex(_spinlock_mutex);
     1.9      if (*lock == 0) {
    1.10          *lock = 1;
    1.11 -        SDL_mutexV(_spinlock_mutex);
    1.12 +        SDL_UnlockMutex(_spinlock_mutex);
    1.13          return SDL_TRUE;
    1.14      } else {
    1.15 -        SDL_mutexV(_spinlock_mutex);
    1.16 +        SDL_UnlockMutex(_spinlock_mutex);
    1.17          return SDL_FALSE;
    1.18      }
    1.19