Use Glib::usleep in Editor::timefx_thread on Windows
authorTim Mayberry <mojofunk@gmail.com>
Fri, 2 May 2014 10:21:17 +0000 (20:21 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 13 May 2014 23:47:40 +0000 (09:47 +1000)
gtk2_ardour/editor_timefx.cc

index 2528c823b7996ac9f75346ece542476c47378f87..765030507b649adaf16d916d36ca97fada65f1f8 100644 (file)
@@ -403,7 +403,7 @@ Editor::timefx_thread (void *arg)
         */
 
 #ifdef PLATFORM_WINDOWS
-       Sleep(2000);
+       Glib::usleep(2 * G_USEC_PER_SEC);
 #else
         struct timespec t = { 2, 0 };
         nanosleep (&t, 0);