mirror of
https://github.com/yawut/SDL.git
synced 2026-09-11 18:46:36 -05:00
1.3 API CHANGE: Add support for naming threads.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user