differentiate between capture / playback audio thread names
authorSam Lantinga <slouken@libsdl.org>
Tue, 14 Mar 2017 07:16:56 -0700
changeset 109359a4c02660fcf
parent 10934 380eae4f5059
child 10936 7ef6524d95c4
differentiate between capture / playback audio thread names
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Thu Mar 09 16:09:16 2017 -0800
     1.2 +++ b/src/audio/SDL_audio.c	Tue Mar 14 07:16:56 2017 -0700
     1.3 @@ -1371,7 +1371,7 @@
     1.4          const size_t stacksize = is_internal_thread ? 64 * 1024 : 0;
     1.5          char threadname[64];
     1.6  
     1.7 -        SDL_snprintf(threadname, sizeof (threadname), "SDLAudioDev%d", (int) device->id);
     1.8 +        SDL_snprintf(threadname, sizeof (threadname), "SDLAudio%c%d", (iscapture) ? 'C' : 'P', (int) device->id);
     1.9          device->thread = SDL_CreateThreadInternal(iscapture ? SDL_CaptureAudio : SDL_RunAudio, threadname, stacksize, device);
    1.10  
    1.11          if (device->thread == NULL) {