Improve variable setting

This commit is contained in:
2020-05-15 10:42:24 +02:00
parent f5ed8adfcd
commit a42e718880
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -60,13 +60,16 @@ namespace core_buffer {
// How long should the RECV queue be.
const size_t STREAM_RCVHWM = 100;
// Size of buffer between the receiving and sending part.
const int STREAM_FASTQUEUE_SLOTS = 5;
// Writer RECV queue on ZMQ.
const int WRITER_RCVHWM = 100;
// ZMQ threads for receiving data from sf_replay.
const int WRITER_ZMQ_IO_THREADS = 2;
// Size of buffer between the receiving and writing part of sf_writer
// Size of buffer between the receiving and writing part.
const int WRITER_FASTQUEUE_SLOTS = 5;
// Number of pulses between each statistics print out.
+1 -1
View File
@@ -42,7 +42,7 @@ int main (int argc, char *argv[])
size_t n_modules = 32;
FastQueue<ModuleFrameBuffer> queue(
n_modules * MODULE_N_BYTES,
WRITER_RB_BUFFER_SLOTS);
STREAM_FASTQUEUE_SLOTS);
auto ctx = zmq_ctx_new();
zmq_ctx_set (ctx, ZMQ_IO_THREADS, STREAM_ZMQ_IO_THREADS);