Commit aa13a49b authored by Constantin Rack's avatar Constantin Rack

Merge pull request #1883 from yuvallanger/master

Fix NetBSD thread scheduling problem.
parents 7a563ebb 37a4a407
......@@ -138,6 +138,10 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_
policy = schedulingPolicy_;
}
#ifdef __NetBSD__
if(policy == SCHED_OTHER) param.sched_priority = -1;
#endif
rc = pthread_setschedparam(descriptor, policy, &param);
posix_assert (rc);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment