diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-05-06 16:33:10 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-05-06 16:33:10 +0200 |
commit | 286cddccfd9d69f4bc567fc9f00898f06315cd30 (patch) | |
tree | 22ea704d16653483a972d8b16e0c8724c3d28828 /test/audiocachetest.cc | |
parent | a1f4e968563763435027a905be8349cda1974e00 (diff) |
Get rid of unused unistd includes. Change the rest of the sleep calls to c++.
Diffstat (limited to 'test/audiocachetest.cc')
-rw-r--r-- | test/audiocachetest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/audiocachetest.cc b/test/audiocachetest.cc index 0e3db10..c03bee4 100644 --- a/test/audiocachetest.cc +++ b/test/audiocachetest.cc @@ -26,10 +26,12 @@ */ #include <cppunit/extensions/HelperMacros.h> +#include <thread> +#include <chrono> + #include <audiofile.h> #include <audiocache.h> #include <settings.h> -#include <unistd.h> #include "drumkit_creator.h" @@ -108,7 +110,7 @@ public: int timeout = 1000; while(!audio_cache.isReady(id)) { - usleep(1000); + std::this_thread::sleep_for(std::chrono::milliseconds(1)); if(--timeout == 0) { CPPUNIT_ASSERT(false); // timeout |