mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-08 10:08:42 +02:00
Init vector to n_modules
This commit is contained in:
@@ -51,7 +51,7 @@ int main (int argc, char *argv[])
|
||||
auto ctx = zmq_ctx_new();
|
||||
zmq_ctx_set (ctx, ZMQ_IO_THREADS, 16);
|
||||
|
||||
vector<thread> threads;
|
||||
vector<thread> threads(n_modules);
|
||||
|
||||
auto read_thread = [&](int module_id) {
|
||||
auto socket = zmq_socket(ctx, ZMQ_PULL);
|
||||
|
||||
Reference in New Issue
Block a user