test/testatomic.c
changeset 6977 b73d51026c68
parent 5969 3a041d215edc
child 7191 75360622e65f
     1.1 --- a/test/testatomic.c	Thu Mar 07 15:37:08 2013 -0800
     1.2 +++ b/test/testatomic.c	Thu Mar 07 20:12:40 2013 -0800
     1.3 @@ -412,7 +412,7 @@
     1.4      int delta;
     1.5      SDL_bool status = SDL_FALSE;
     1.6  
     1.7 -    SDL_mutexP(queue->mutex);
     1.8 +    SDL_LockMutex(queue->mutex);
     1.9  
    1.10      queue_pos = (unsigned)queue->enqueue_pos.value;
    1.11      entry = &queue->entries[queue_pos & WRAP_MASK];
    1.12 @@ -432,7 +432,7 @@
    1.13          printf("ERROR: mutex failed!\n");
    1.14      }
    1.15  
    1.16 -    SDL_mutexV(queue->mutex);
    1.17 +    SDL_UnlockMutex(queue->mutex);
    1.18  
    1.19      return status;
    1.20  }
    1.21 @@ -445,7 +445,7 @@
    1.22      int delta;
    1.23      SDL_bool status = SDL_FALSE;
    1.24  
    1.25 -    SDL_mutexP(queue->mutex);
    1.26 +    SDL_LockMutex(queue->mutex);
    1.27  
    1.28      queue_pos = (unsigned)queue->dequeue_pos.value;
    1.29      entry = &queue->entries[queue_pos & WRAP_MASK];
    1.30 @@ -465,7 +465,7 @@
    1.31          printf("ERROR: mutex failed!\n");
    1.32      }
    1.33  
    1.34 -    SDL_mutexV(queue->mutex);
    1.35 +    SDL_UnlockMutex(queue->mutex);
    1.36  
    1.37      return status;
    1.38  }