Use new RT-priority API
This commit is contained in:
parent
94e6164bc3
commit
3a776b58ce
|
@ -24,6 +24,7 @@
|
|||
#include "pbd/compose.h"
|
||||
#include "pbd/pthread_utils.h"
|
||||
|
||||
#include "ardour/audioengine.h"
|
||||
#include "ardour/automation_control.h"
|
||||
#include "ardour/automation_watch.h"
|
||||
#include "ardour/debug.h"
|
||||
|
@ -186,7 +187,7 @@ AutomationWatch::timer ()
|
|||
void
|
||||
AutomationWatch::thread ()
|
||||
{
|
||||
pbd_set_thread_priority (pthread_self(), PBD_SCHED_FIFO, -25);
|
||||
pbd_set_thread_priority (pthread_self(), PBD_SCHED_FIFO, AudioEngine::instance()->client_real_time_priority() - 3);
|
||||
while (_run_thread) {
|
||||
Glib::usleep ((gulong) floor (Config->get_automation_interval_msecs() * 1000));
|
||||
timer ();
|
||||
|
|
|
@ -87,7 +87,7 @@ RTTaskList::reset_thread_list ()
|
|||
size_t stacksize = 100000;
|
||||
if (!AudioEngine::instance()->is_realtime ()
|
||||
||
|
||||
pbd_realtime_pthread_create (PBD_SCHED_FIFO, -22, stacksize, &thread_id, _thread_run, this)) {
|
||||
pbd_realtime_pthread_create (PBD_SCHED_FIFO, AudioEngine::instance()->client_real_time_priority(), stacksize, &thread_id, _thread_run, this)) {
|
||||
pthread_attr_t attr;
|
||||
pthread_attr_init (&attr);
|
||||
pthread_attr_setstacksize (&attr, stacksize);
|
||||
|
|
Loading…
Reference in New Issue
Block a user