Unverified Commit b0d9a5a2 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #3174 from ilue/master

Fix for issue #3162
parents 0d660674 e22cd678
......@@ -228,7 +228,7 @@ void zmq::thread_t::
return;
}
#endif
int rc = pthread_getschedparam (_descriptor, &policy, &param);
int rc = pthread_getschedparam (pthread_self (), &policy, &param);
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, &param);
rc = pthread_setschedparam (pthread_self (), policy, &param);
#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__)
// If this feature is unavailable at run-time, don't abort.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment