switch from using Sleep/usleep to Glib::usleep()
This commit is contained in:
parent
22175630bb
commit
0258f2958b
@ -21,6 +21,8 @@
|
|||||||
#include <boost/scoped_ptr.hpp>
|
#include <boost/scoped_ptr.hpp>
|
||||||
#include <jack/session.h>
|
#include <jack/session.h>
|
||||||
|
|
||||||
|
#include <glibmm/timer.h>
|
||||||
|
|
||||||
#include "pbd/epa.h"
|
#include "pbd/epa.h"
|
||||||
|
|
||||||
#include "jack_connection.h"
|
#include "jack_connection.h"
|
||||||
@ -145,11 +147,7 @@ JackConnection::close ()
|
|||||||
_jack = 0;
|
_jack = 0;
|
||||||
|
|
||||||
/* If we started JACK, it will be closing down */
|
/* If we started JACK, it will be closing down */
|
||||||
#ifdef PLATFORM_WINDOWS
|
Glib::usleep (500000);
|
||||||
Sleep(500);
|
|
||||||
#else
|
|
||||||
usleep (500000);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Disconnected (""); /* EMIT SIGNAL */
|
Disconnected (""); /* EMIT SIGNAL */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user