Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ilue authored and MohammadAlTurany committed Jan 28, 2019
1 parent bccaf4a commit acab963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit acab963

Please sign in to comment.