mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Problem: kFreeBSD does not implement pthread_setschedparam
Solution: do not fail on kFreeBSD if this feature is not available at runtime. Thanks Steven Chamberlain <steven@pyro.eu.org> for the patch!
This commit is contained in:
parent
361e99a906
commit
43f3cc5c78
@ -145,6 +145,12 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
rc = pthread_setschedparam(descriptor, policy, ¶m);
|
rc = pthread_setschedparam(descriptor, policy, ¶m);
|
||||||
|
|
||||||
|
#ifdef __FreeBSD_kernel__
|
||||||
|
// If this feature is unavailable at run-time, don't abort.
|
||||||
|
if(rc == ENOSYS) return;
|
||||||
|
#endif
|
||||||
|
|
||||||
posix_assert (rc);
|
posix_assert (rc);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user