Merge pull request #1883 from yuvallanger/master

Fix NetBSD thread scheduling problem.
This commit is contained in:
Constantin Rack 2016-04-03 10:50:11 +02:00
commit aa13a49bc8

View File

@ -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