diff options
author | Jeff Garzik <jgarzik@bitpay.com> | 2013-06-10 13:42:59 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@bitpay.com> | 2013-06-10 13:42:59 -0700 |
commit | d1020b780a1493c6a709f70756b2af54a7126f40 (patch) | |
tree | 6427b7d81d191194f0c2bc09e93b9dc23627f0a0 /src/util.h | |
parent | 61983b3d1626359705b300ac82d9cfb6b77eb746 (diff) | |
parent | 53e71135de2933ef1204bb02487d4c45a95d2e28 (diff) | |
download | bitcoin-d1020b780a1493c6a709f70756b2af54a7126f40.tar.xz |
Merge pull request #2553 from Diapolo/threads
changes to thread code (directly use boost::thread)
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 9 |
1 files changed, 1 insertions, 8 deletions
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); |