Coreaudio: set real-time constraint before joining the workgroup

The worker thread needs to have a real-time constraint set,
before it cab be joined to the workgroup.
This commit is contained in:
Robin Gareus 2022-06-03 06:38:50 +02:00
parent 87ee609339
commit 6a513a11fa
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 9 additions and 7 deletions

View file

@ -388,6 +388,7 @@ class CoreAudioBackend : public AudioBackend, public PortEngineSharedImpl {
CoreAudioBackend* engine;
boost::function<void ()> f;
size_t stacksize;
double period_ns;
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
bool _joined_workgroup;
@ -395,8 +396,8 @@ class CoreAudioBackend : public AudioBackend, public PortEngineSharedImpl {
os_workgroup_join_token_s _join_token;
#endif
ThreadData (CoreAudioBackend* e, boost::function<void ()> fp, size_t stacksz)
: engine (e) , f (fp) , stacksize (stacksz) {}
ThreadData (CoreAudioBackend* e, boost::function<void ()> fp, size_t stacksz, double period)
: engine (e) , f (fp) , stacksize (stacksz), period_ns {}
};
/* port engine */