mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
Fix windows builds (amend 01b06906b)
This commit is contained in:
parent
4296be2c70
commit
52047e108d
1 changed files with 2 additions and 2 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
|
#include <glibmm/timer.h>
|
||||||
|
|
||||||
#include "pbd/error.h"
|
#include "pbd/error.h"
|
||||||
#include "pbd/compose.h"
|
#include "pbd/compose.h"
|
||||||
|
|
@ -58,13 +59,12 @@ Session::set_controls (boost::shared_ptr<ControlList> cl, double val, Controllab
|
||||||
* Ideally the EventLoop RequestBuffer would be at least twice the size
|
* 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
|
* of the the SessionEvent Pool, but it isn't, and even then there may
|
||||||
* still be other signals scheduling events...
|
* still be other signals scheduling events...
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (SessionEvent::pool_available () < 8) {
|
if (SessionEvent::pool_available () < 8) {
|
||||||
int sleeptm = std::max (40000, engine().usecs_per_cycle ());
|
int sleeptm = std::max (40000, engine().usecs_per_cycle ());
|
||||||
int timeout = std::max (10, 1000000 / sleeptm);
|
int timeout = std::max (10, 1000000 / sleeptm);
|
||||||
do {
|
do {
|
||||||
usleep (sleeptm);
|
Glib::usleep (sleeptm);
|
||||||
ARDOUR::GUIIdle ();
|
ARDOUR::GUIIdle ();
|
||||||
}
|
}
|
||||||
while (SessionEvent::pool_available () < 8 && --timeout > 0);
|
while (SessionEvent::pool_available () < 8 && --timeout > 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue