mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-15 18:06:06 +01:00
Leave a note for RT-Tasklists (need macOS workgroups)
This commit is contained in:
parent
99e785541a
commit
191fdfda72
1 changed files with 7 additions and 1 deletions
|
|
@ -67,12 +67,19 @@ RTTaskList::drop_threads ()
|
|||
RTTaskList::_thread_run (void* arg)
|
||||
{
|
||||
RTTaskList* d = static_cast<RTTaskList*> (arg);
|
||||
pbd_mach_set_realtime_policy (pthread_self (), 5. * 1e-5, false);
|
||||
|
||||
char name[64];
|
||||
snprintf (name, 64, "RTTask-%p", (void*)DEBUG_THREAD_SELF);
|
||||
pthread_set_name (name);
|
||||
|
||||
/* TODO: join macOS workgroup (needs backend API update).
|
||||
* also rt-tasks need to be re-initialized when the engine is restarted
|
||||
*/
|
||||
|
||||
d->run ();
|
||||
|
||||
// TODO: leave macOS workgroup
|
||||
pthread_exit (0);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -101,7 +108,6 @@ RTTaskList::reset_thread_list ()
|
|||
PBD::fatal << _("Cannot create thread for TaskList!") << " (" << strerror (rv) << ")" << endmsg;
|
||||
/* NOT REACHED */
|
||||
}
|
||||
pbd_mach_set_realtime_policy (thread_id, 5. * 1e-5, false);
|
||||
_threads.push_back (thread_id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue