Compilation fix on OSX / Windows

This commit is contained in:
Bertrand Songis
2019-06-21 12:51:39 +02:00
parent 2ac0ed307d
commit ba445c6c0d
4 changed files with 19 additions and 14 deletions
+2
View File
@@ -386,7 +386,9 @@ void StartAudioThread(int volumeGain)
sp.sched_priority = SCHED_RR;
pthread_attr_setschedparam(&attr, &sp);
pthread_create(&simuAudio.threadPid, &attr, &audioThread, nullptr);
#ifdef __linux__
pthread_setname_np(simuAudio.threadPid, "audio");
#endif
return;
}