ref: 7fd60f8d9b7e5930f34b9cb105082f9e40896f22
parent: 326e00f5cf181ca299a20d7a7599d8401de3d2c2
author: Simon Howard <[email protected]>
date: Fri Nov 28 10:43:26 EST 2014
Add thread name to SDL_CreateThread calls. SDL2's version of SDL_CreateThread has an extra parameter to specify a name for the thread.
--- a/opl/opl_timer.c
+++ b/opl/opl_timer.c
@@ -184,7 +184,7 @@
opl_timer_paused = 0;
pause_offset = 0;
- timer_thread = SDL_CreateThread(ThreadFunction, NULL);
+ timer_thread = SDL_CreateThread(ThreadFunction, "OPL timer thread", NULL);
if (timer_thread == NULL)
{
--- a/pcsound/pcsound_bsd.c
+++ b/pcsound/pcsound_bsd.c
@@ -291,7 +291,8 @@
}
sound_thread_running = 1;
- sound_thread_handle = SDL_CreateThread(SoundThread, NULL);
+ sound_thread_handle =
+ SDL_CreateThread(SoundThread, "PC speaker thread", NULL);
return 1;
}
--- a/pcsound/pcsound_linux.c
+++ b/pcsound/pcsound_linux.c
@@ -142,8 +142,9 @@
callback = callback_func;
sound_thread_running = 1;
- sound_thread_handle = SDL_CreateThread(SoundThread, NULL);
-
+ sound_thread_handle =
+ SDL_CreateThread(SoundThread, "PC speaker thread", NULL);
+
return 1;
}
--- a/pcsound/pcsound_win32.c
+++ b/pcsound/pcsound_win32.c
@@ -87,7 +87,8 @@
callback = callback_func;
sound_thread_running = 1;
- sound_thread_handle = SDL_CreateThread(SoundThread, NULL);
+ sound_thread_handle =
+ SDL_CreateThread(SoundThread, "PC speaker thread", NULL);
return 1;
}