Thread names and cosmetics

This commit is contained in:
Bertrand Songis
2019-06-18 12:13:11 +02:00
parent ad13301389
commit afa69cb0c5
5 changed files with 92 additions and 82 deletions
+2 -1
View File
@@ -554,7 +554,8 @@ void StartAudioThread(int volumeGain)
struct sched_param sp;
sp.sched_priority = SCHED_RR;
pthread_attr_setschedparam(&attr, &sp);
pthread_create(&simuAudio.threadPid, &attr, &audioThread, NULL);
pthread_create(&simuAudio.threadPid, &attr, &audioThread, nullptr);
pthread_setname_np(simuAudio.threadPid, "audio");
return;
}