From 570d9052820be1d6442a5cc58ece37397f8a9e4c Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 5 Dec 2016 12:46:58 -0500 Subject: [PATCH] chore(util/thread): do not import chrono twice --- src/util/thread.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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;