[win] Additional fixes for MSVC and MinGW (#142)
This commit is contained in:
@@ -9,10 +9,6 @@
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
|
||||
#if defined(WIN32)
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
using namespace mbgl;
|
||||
using namespace mbgl::util;
|
||||
|
||||
@@ -202,11 +198,8 @@ TEST(Thread, ReferenceCanOutliveThread) {
|
||||
worker.invoke(&TestWorker::send, [&] { ADD_FAILURE() << "Should never happen"; });
|
||||
}
|
||||
|
||||
#if defined(WIN32)
|
||||
Sleep(10);
|
||||
#else
|
||||
usleep(10000);
|
||||
#endif
|
||||
using namespace std::literals;
|
||||
std::this_thread::sleep_for(10s);
|
||||
}
|
||||
|
||||
TEST(Thread, DeletePausedThread) {
|
||||
|
||||
Reference in New Issue
Block a user