Thread scheduling parameters: Use ZMQ context options instead of

environment variables.
This commit is contained in:
Joel Lauener
2014-07-02 12:07:35 +02:00
parent 00fe56c4bf
commit 219310b4f0
17 changed files with 106 additions and 40 deletions

View File

@@ -27,6 +27,7 @@
#include <vector>
#include <unistd.h>
#include "ctx.hpp"
#include "fd.hpp"
#include "thread.hpp"
#include "poller_base.hpp"
@@ -45,7 +46,7 @@ namespace zmq
typedef void* handle_t;
kqueue_t ();
kqueue_t (const ctx_t &ctx_);
~kqueue_t ();
// "poller" concept.
@@ -68,6 +69,9 @@ namespace zmq
// Main event loop.
void loop ();
// Reference to ZMQ context.
const ctx_t &ctx;
// File descriptor referring to the kernel event queue.
fd_t kqueue_fd;