mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-08 03:58:42 +02:00
Increase the number of io threads to 4
This commit is contained in:
@@ -30,10 +30,12 @@ int main (int argc, char *argv[])
|
||||
size_t n_modules = 32;
|
||||
|
||||
auto ctx = zmq_ctx_new();
|
||||
zmq_ctx_set (ctx, ZMQ_IO_THREADS, 4);
|
||||
|
||||
auto socket = zmq_socket(ctx, ZMQ_PULL);
|
||||
|
||||
//TODO: Use ipc?
|
||||
if (zmq_bind(socket, "tcp://localhost:50000") != 0) {
|
||||
if (zmq_bind(socket, "tcp://0.0.0.0:50000") != 0) {
|
||||
throw runtime_error(strerror (errno));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user