From 52047e108d813ca0586bd4518b6489171869d94e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 9 Jun 2022 18:12:54 +0200 Subject: [PATCH] Fix windows builds (amend 01b06906b) --- libs/ardour/session_rtevents.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/session_rtevents.cc b/libs/ardour/session_rtevents.cc index 408d9d89df..5649198c11 100644 --- a/libs/ardour/session_rtevents.cc +++ b/libs/ardour/session_rtevents.cc @@ -19,6 +19,7 @@ */ #include +#include #include "pbd/error.h" #include "pbd/compose.h" @@ -58,13 +59,12 @@ Session::set_controls (boost::shared_ptr cl, double val, Controllab * Ideally the EventLoop RequestBuffer would be at least twice the size * of the the SessionEvent Pool, but it isn't, and even then there may * still be other signals scheduling events... - * */ if (SessionEvent::pool_available () < 8) { int sleeptm = std::max (40000, engine().usecs_per_cycle ()); int timeout = std::max (10, 1000000 / sleeptm); do { - usleep (sleeptm); + Glib::usleep (sleeptm); ARDOUR::GUIIdle (); } while (SessionEvent::pool_available () < 8 && --timeout > 0);