Merge pull request #2578 from rkfg/dev

Problem: abort at socket creation on Android with jzmq
This commit is contained in:
Luca Boccassi 2017-05-17 14:09:14 +01:00 committed by GitHub
commit 6ad533bec4

View File

@ -412,7 +412,9 @@ void zmq::ctx_t::start_thread (thread_t &thread_, thread_fn *tfn_, void *arg_) c
{ {
thread_.start(tfn_, arg_); thread_.start(tfn_, arg_);
thread_.setSchedulingParameters(thread_priority, thread_sched_policy); thread_.setSchedulingParameters(thread_priority, thread_sched_policy);
#ifndef ZMQ_HAVE_ANDROID
thread_.setThreadName ("ZMQ background"); thread_.setThreadName ("ZMQ background");
#endif
} }
void zmq::ctx_t::send_command (uint32_t tid_, const command_t &command_) void zmq::ctx_t::send_command (uint32_t tid_, const command_t &command_)