mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00: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_;
|
policy = schedulingPolicy_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __NetBSD__
|
||||||
|
if(policy == SCHED_OTHER) param.sched_priority = -1;
|
||||||
|
#endif
|
||||||
|
|
||||||
rc = pthread_setschedparam(descriptor, policy, ¶m);
|
rc = pthread_setschedparam(descriptor, policy, ¶m);
|
||||||
posix_assert (rc);
|
posix_assert (rc);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user