diff --git a/src/util/thread.h b/src/util/thread.h index 2c88848aad..6f9c6792fa 100644 --- a/src/util/thread.h +++ b/src/util/thread.h @@ -6,21 +6,25 @@ Author: Leonardo de Moura */ #pragma once #include +#include +#include #ifndef LEAN_STACK_BUFFER_SPACE #define LEAN_STACK_BUFFER_SPACE 128*1024 // 128 Kb #endif +namespace lean { +namespace chrono = std::chrono; +}; + #if defined(LEAN_MULTI_THREAD) #include #include #include #include #define LEAN_THREAD_LOCAL thread_local -#include namespace lean { -namespace chrono = std::chrono; using std::thread; using std::mutex; using std::recursive_mutex; @@ -61,10 +65,8 @@ public: // NO MULTI THREADING SUPPORT #include #include -#include // NOLINT #define LEAN_THREAD_LOCAL namespace lean { -namespace chrono = std::chrono; constexpr int memory_order_relaxed = 0; constexpr int memory_order_release = 0; constexpr int memory_order_acquire = 0;