mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 04:17:57 +01:00
Thread scheduling parameters: Use ZMQ context options instead of
environment variables.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user