zeromq / zmqpp

0mq 'highlevel' C++ bindings
http://zeromq.github.io/zmqpp
Mozilla Public License 2.0
438 stars 195 forks source link

Support "thread_priority" and "thread_sched_policy" context options #169

Closed gasuketsu closed 8 years ago

gasuketsu commented 8 years ago

From zeromq 4.1.0 it has new context options to configure I/O thread's priority and scheduling policy, but zmqpp does not have options for them. So added options for them so that users can set I/O thread's priority and policy like below.

zmqpp::context ctx;

ctx.set(zmqpp::thread_priority, 10);
ctx.set(zmqpp::thread_sched_policy, SCHED_FIFO);