test/testsem.c
changeset 5969 3a041d215edc
parent 5535 96594ac5fd1a
child 6298 9110462bfc57
     1.1 --- a/test/testsem.c	Tue Sep 27 23:16:04 2011 -0400
     1.2 +++ b/test/testsem.c	Sun Oct 02 00:29:16 2011 -0400
     1.3 @@ -100,7 +100,9 @@
     1.4             init_sem);
     1.5      /* Create all the threads */
     1.6      for (i = 0; i < NUM_THREADS; ++i) {
     1.7 -        threads[i] = SDL_CreateThread(ThreadFunc, (void *) i);
     1.8 +        char name[64];
     1.9 +        SDL_snprintf(name, sizeof (name), "Thread%u", (unsigned int) i);
    1.10 +        threads[i] = SDL_CreateThread(ThreadFunc, name, (void *) i);
    1.11      }
    1.12  
    1.13      /* Wait 10 seconds */