mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
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:
parent
87ee609339
commit
6a513a11fa
2 changed files with 9 additions and 7 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue