1.3 API CHANGE: Add support for naming threads.

This commit is contained in:
Ryan C. Gordon
2011-10-02 00:29:16 -04:00
parent 6cd0d9d1ab
commit 2ef51927fe
22 changed files with 183 additions and 45 deletions

View File

@@ -63,7 +63,7 @@ main(int argc, char *argv[])
}
alive = 1;
thread = SDL_CreateThread(ThreadFunc, "#1");
thread = SDL_CreateThread(ThreadFunc, "One", "#1");
if (thread == NULL) {
fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError());
quit(1);
@@ -75,7 +75,7 @@ main(int argc, char *argv[])
alive = 1;
signal(SIGTERM, killed);
thread = SDL_CreateThread(ThreadFunc, "#2");
thread = SDL_CreateThread(ThreadFunc, "Two", "#2");
if (thread == NULL) {
fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError());
quit(1);