test/testlock.c
changeset 6977 b73d51026c68
parent 5969 3a041d215edc
child 7191 75360622e65f
--- a/test/testlock.c	Thu Mar 07 15:37:08 2013 -0800
+++ b/test/testlock.c	Thu Mar 07 20:12:40 2013 -0800
@@ -69,14 +69,14 @@
         signal(SIGTERM, closemutex);
     while (!doterminate) {
         printf("Process %lu ready to work\n", SDL_ThreadID());
-        if (SDL_mutexP(mutex) < 0) {
+        if (SDL_LockMutex(mutex) < 0) {
             fprintf(stderr, "Couldn't lock mutex: %s", SDL_GetError());
             exit(1);
         }
         printf("Process %lu, working!\n", SDL_ThreadID());
         SDL_Delay(1 * 1000);
         printf("Process %lu, done!\n", SDL_ThreadID());
-        if (SDL_mutexV(mutex) < 0) {
+        if (SDL_UnlockMutex(mutex) < 0) {
             fprintf(stderr, "Couldn't unlock mutex: %s", SDL_GetError());
             exit(1);
         }