summaryrefslogtreecommitdiff
path: root/drumgizmo
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 16:31:29 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 16:31:29 +0200
commita1f4e968563763435027a905be8349cda1974e00 (patch)
treee048f6c4bf7f41cdc87166ab1d00fead43adfb6d /drumgizmo
parentb7b5b9ee2a9d6cefe9b83589122cedb89c22279c (diff)
Get rid of platform dependent usleep/SleepEx.
Diffstat (limited to 'drumgizmo')
-rw-r--r--drumgizmo/drumgizmoc.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc
index 97737d7..22313c0 100644
--- a/drumgizmo/drumgizmoc.cc
+++ b/drumgizmo/drumgizmoc.cc
@@ -34,6 +34,8 @@
#include <stdlib.h>
#include <unistd.h>
#include <sstream>
+#include <chrono>
+#include <thread>
#include <hugin.hpp>
@@ -428,11 +430,7 @@ int main(int argc, char* argv[])
{
while(settings.drumkit_load_status.load() != LoadStatus::Done)
{
-#ifdef WIN32
- SleepEx(10, FALSE);
-#else
- usleep(10000);
-#endif /*WIN32*/
+ std::this_thread::sleep_for(std::chrono::milliseconds(10));
int total = settings.number_of_files.load();
int loaded = settings.number_of_files_loaded.load();