mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-31 14:39:55 +01:00
Merge pull request #1883 from yuvallanger/master
Fix NetBSD thread scheduling problem.
This commit is contained in:
commit
aa13a49bc8
@ -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, ¶m);
|
||||
posix_assert (rc);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user