mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-18 08:24:05 +01:00
Init vector to n_modules
This commit is contained in:
1 parent
173f481711
commit
05bce760a2
1 file changed
+1
-1
@@ -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