|
@ -43,12 +43,12 @@ Client::Client(std::string const& _clientVersion, Address _us, std::string const |
|
|
|
|
|
|
|
|
static std::string thread_name = "eth"; |
|
|
static std::string thread_name = "eth"; |
|
|
|
|
|
|
|
|
|
|
|
#if defined(__APPLE__) |
|
|
static dispatch_once_t onceToken; |
|
|
static dispatch_once_t onceToken; |
|
|
dispatch_once(&onceToken, ^{ |
|
|
dispatch_once(&onceToken, ^{ |
|
|
m_work = dispatch_queue_create(thread_name.c_str(), DISPATCH_QUEUE_SERIAL); |
|
|
m_work = dispatch_queue_create(thread_name.c_str(), DISPATCH_QUEUE_SERIAL); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
#if defined(__APPLE__) |
|
|
|
|
|
dispatch_async(m_work, ^{ |
|
|
dispatch_async(m_work, ^{ |
|
|
#else |
|
|
#else |
|
|
m_work = new thread([&](){ |
|
|
m_work = new thread([&](){ |
|
|