diff options
| author | Jeff Garzik <[email protected]> | 2013-06-10 13:42:59 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-06-10 13:42:59 -0700 |
| commit | d1020b780a1493c6a709f70756b2af54a7126f40 (patch) | |
| tree | 6427b7d81d191194f0c2bc09e93b9dc23627f0a0 /src/util.cpp | |
| parent | Merge pull request #1863 from jgarzik/keytime (diff) | |
| parent | changes to thread code (directly use boost::thread) (diff) | |
| download | discoin-d1020b780a1493c6a709f70756b2af54a7126f40.tar.xz discoin-d1020b780a1493c6a709f70756b2af54a7126f40.zip | |
Merge pull request #2553 from Diapolo/threads
changes to thread code (directly use boost::thread)
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; -} |