From 6ccb5835ff55d85156be91473c598eca9d6cb9a6 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 4 Nov 2020 16:57:41 +0100 Subject: Revert "Make Lint Happy" This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4. --- src/threading/thread.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/threading/thread.h') diff --git a/src/threading/thread.h b/src/threading/thread.h index aee2aa357..cea92226f 100644 --- a/src/threading/thread.h +++ b/src/threading/thread.h @@ -33,7 +33,7 @@ DEALINGS IN THE SOFTWARE. #include #ifdef _AIX -#include // for tid_t + #include // for tid_t #endif /* @@ -41,17 +41,18 @@ DEALINGS IN THE SOFTWARE. * even divisions between the minimum and maximum reported thread priority. */ #if !defined(_WIN32) -#define THREAD_PRIORITY_LOWEST 0 -#define THREAD_PRIORITY_BELOW_NORMAL 1 -#define THREAD_PRIORITY_NORMAL 2 -#define THREAD_PRIORITY_ABOVE_NORMAL 3 -#define THREAD_PRIORITY_HIGHEST 4 + #define THREAD_PRIORITY_LOWEST 0 + #define THREAD_PRIORITY_BELOW_NORMAL 1 + #define THREAD_PRIORITY_NORMAL 2 + #define THREAD_PRIORITY_ABOVE_NORMAL 3 + #define THREAD_PRIORITY_HIGHEST 4 #endif -class Thread -{ + + +class Thread { public: - Thread(const std::string &name = ""); + Thread(const std::string &name=""); virtual ~Thread(); DISABLE_CLASS_COPY(Thread) @@ -140,9 +141,7 @@ protected: private: std::thread::native_handle_type getThreadHandle() - { - return m_thread_obj->native_handle(); - } + { return m_thread_obj->native_handle(); } static void threadProc(Thread *thr); @@ -155,9 +154,11 @@ private: std::thread *m_thread_obj = nullptr; + #ifdef _AIX // For AIX, there does not exist any mapping from pthread_t to tid_t // available to us, so we maintain one ourselves. This is set on thread start. tid_t m_kernel_thread_id; #endif }; + -- cgit v1.2.3