src/atomic/SDL_spinlock.c
changeset 8460 f483e8bdae3c
parent 8439 14d94a8a9fb6
parent 6977 b73d51026c68
child 8477 ad08f0d710f3
     1.1 --- a/src/atomic/SDL_spinlock.c	Sat Apr 13 23:03:46 2013 -0400
     1.2 +++ b/src/atomic/SDL_spinlock.c	Sun Apr 14 11:42:55 2013 -0400
     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