[win] Additional fixes for MSVC and MinGW (#142)

This commit is contained in:
Tadej Novak
2021-10-19 17:53:23 +02:00
committed by GitHub
parent 340f3d6cd6
commit 811b18b74e
7 changed files with 24 additions and 14 deletions

View File

@@ -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) {