test/testlock.c
changeset 5969 3a041d215edc
parent 5535 96594ac5fd1a
child 6977 b73d51026c68
--- a/test/testlock.c	Tue Sep 27 23:16:04 2011 -0400
+++ b/test/testlock.c	Sun Oct 02 00:29:16 2011 -0400
@@ -112,7 +112,9 @@
     printf("Main thread: %lu\n", mainthread);
     atexit(printid);
     for (i = 0; i < maxproc; ++i) {
-        if ((threads[i] = SDL_CreateThread(Run, NULL)) == NULL)
+        char name[64];
+        SDL_snprintf(name, sizeof (name), "Worker%d", i);
+        if ((threads[i] = SDL_CreateThread(Run, name, NULL)) == NULL)
             fprintf(stderr, "Couldn't create thread!\n");
     }
     signal(SIGINT, terminate);