This fixes an issue with sparse automation touch/write when the CPU is
busy (stationary playhead, waveform rendering, or just high DSP load)
#include <glibmm/timer.h>
#include "pbd/compose.h"
+#include "pbd/pthread_utils.h"
#include "ardour/automation_control.h"
#include "ardour/automation_watch.h"
void
AutomationWatch::thread ()
{
+ pbd_set_thread_priority (pthread_self(), SCHED_FIFO, -25);
while (_run_thread) {
Glib::usleep ((gulong) floor (Config->get_automation_interval_msecs() * 1000));
timer ();