Merge pull request #1983 from hitstergtd/x-unused-thread

Problem: scheduling parameters unused on OSX
This commit is contained in:
Luca Boccassi 2016-05-12 16:53:22 +01:00
commit f8c93d508f

View File

@ -28,6 +28,7 @@
*/ */
#include "precompiled.hpp" #include "precompiled.hpp"
#include "macros.hpp"
#include "thread.hpp" #include "thread.hpp"
#include "err.hpp" #include "err.hpp"
#include "platform.hpp" #include "platform.hpp"
@ -73,6 +74,8 @@ void zmq::thread_t::stop ()
void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_) void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_)
{ {
// not implemented // not implemented
LIBZMQ_UNUSED (priority_);
LIBZMQ_UNUSED (schedulingPolicy_);
} }
#else #else
@ -144,12 +147,11 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_
rc = pthread_setschedparam(descriptor, policy, &param); rc = pthread_setschedparam(descriptor, policy, &param);
posix_assert (rc); posix_assert (rc);
#else
LIBZMQ_UNUSED (priority_);
LIBZMQ_UNUSED (schedulingPolicy_);
#endif #endif
} }
#endif #endif