mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
'gtk2_ardour' - Specify 'Glib::usleep' where needed (global ::usleep is not available for MSVC)
This commit is contained in:
parent
8bf59e88e5
commit
a19afc5903
1 changed files with 3 additions and 3 deletions
|
|
@ -793,14 +793,14 @@ ARDOUR_UI::startup ()
|
|||
// wait for announce reply from nsm server
|
||||
for ( i = 0; i < 5000; ++i) {
|
||||
nsm->check ();
|
||||
usleep (i);
|
||||
Glib::usleep (i);
|
||||
if (nsm->is_active())
|
||||
break;
|
||||
}
|
||||
// wait for open command from nsm server
|
||||
for ( i = 0; i < 5000; ++i) {
|
||||
nsm->check ();
|
||||
usleep (1000);
|
||||
Glib::usleep (1000);
|
||||
if (nsm->client_id ())
|
||||
break;
|
||||
}
|
||||
|
|
@ -3428,7 +3428,7 @@ ARDOUR_UI::start_video_server (Gtk::Window* float_window, bool popup_msg)
|
|||
}
|
||||
int timeout = 120; // 6 sec
|
||||
while (!ARDOUR_UI::instance()->video_timeline->check_server()) {
|
||||
usleep (50000);
|
||||
Glib::usleep (50000);
|
||||
if (--timeout <= 0 || !video_server_process->is_running()) break;
|
||||
}
|
||||
if (timeout <= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue