diff options
| author | Philip Kaufmann <[email protected]> | 2013-04-23 11:36:54 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2013-06-10 19:49:54 +0200 |
| commit | 53e71135de2933ef1204bb02487d4c45a95d2e28 (patch) | |
| tree | acfd11fae2bb093a83e6d8b6622a90086870d3b5 /src/util.cpp | |
| parent | Merge pull request #2728 from runeksvendsen/master (diff) | |
| download | discoin-53e71135de2933ef1204bb02487d4c45a95d2e28.tar.xz discoin-53e71135de2933ef1204bb02487d4c45a95d2e28.zip | |
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
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/util.cpp b/src/util.cpp index 2f1f522a6..f4892a238 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1468,15 +1468,3 @@ void RenameThread(const char* name) (void)name; #endif } - -bool NewThread(void(*pfn)(void*), void* parg) -{ - try - { - boost::thread(pfn, parg); // thread detaches when out of scope - } catch(boost::thread_resource_error &e) { - printf("Error creating thread: %s\n", e.what()); - return false; - } - return true; -} |