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