From 53e71135de2933ef1204bb02487d4c45a95d2e28 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Tue, 23 Apr 2013 11:36:54 +0200 Subject: changes to thread code (directly use boost::thread) - removes our NewThread() function an replaces remaining calls with boost::thread with our TraceThread template - remove ExitThread() function - fix THREAD_PRIORITY_ABOVE_NORMAL for non Windows OSes --- src/util.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 941e0d99ac..2272ed02f4 100644 --- a/src/util.h +++ b/src/util.h @@ -488,8 +488,6 @@ public: } }; -bool NewThread(void(*pfn)(void*), void* parg); - #ifdef WIN32 inline void SetThreadPriority(int nPriority) { @@ -500,7 +498,7 @@ inline void SetThreadPriority(int nPriority) #define THREAD_PRIORITY_LOWEST PRIO_MAX #define THREAD_PRIORITY_BELOW_NORMAL 2 #define THREAD_PRIORITY_NORMAL 0 -#define THREAD_PRIORITY_ABOVE_NORMAL 0 +#define THREAD_PRIORITY_ABOVE_NORMAL (-2) inline void SetThreadPriority(int nPriority) { @@ -512,11 +510,6 @@ inline void SetThreadPriority(int nPriority) setpriority(PRIO_PROCESS, 0, nPriority); #endif } - -inline void ExitThread(size_t nExitCode) -{ - pthread_exit((void*)nExitCode); -} #endif void RenameThread(const char* name); -- cgit v1.2.3