mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 00:46:05 +01:00
Fix #3162
This commit is contained in:
parent
3a1e8f0704
commit
e22cd678b6
@ -228,7 +228,7 @@ void zmq::thread_t::
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
int rc = pthread_getschedparam (_descriptor, &policy, ¶m);
|
||||
int rc = pthread_getschedparam (pthread_self (), &policy, ¶m);
|
||||
posix_assert (rc);
|
||||
|
||||
if (_thread_sched_policy != ZMQ_THREAD_SCHED_POLICY_DFLT) {
|
||||
@ -257,7 +257,7 @@ void zmq::thread_t::
|
||||
param.sched_priority = -1;
|
||||
#endif
|
||||
|
||||
rc = pthread_setschedparam (_descriptor, policy, ¶m);
|
||||
rc = pthread_setschedparam (pthread_self (), policy, ¶m);
|
||||
|
||||
#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__)
|
||||
// If this feature is unavailable at run-time, don't abort.
|
||||
|
Loading…
x
Reference in New Issue
Block a user