diff --git a/src/thread.cpp b/src/thread.cpp index 2b54ae22..09965d0b 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -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