Commit f8c93d50 authored by Luca Boccassi's avatar Luca Boccassi

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

Problem: scheduling parameters unused on OSX
parents 29c8e30f e946b0d1
......@@ -28,6 +28,7 @@
*/
#include "precompiled.hpp"
#include "macros.hpp"
#include "thread.hpp"
#include "err.hpp"
#include "platform.hpp"
......@@ -73,6 +74,8 @@ void zmq::thread_t::stop ()
void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_)
{
// not implemented
LIBZMQ_UNUSED (priority_);
LIBZMQ_UNUSED (schedulingPolicy_);
}
#else
......@@ -144,12 +147,11 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_
rc = pthread_setschedparam(descriptor, policy, &param);
posix_assert (rc);
#else
LIBZMQ_UNUSED (priority_);
LIBZMQ_UNUSED (schedulingPolicy_);
#endif
}
#endif
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