mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 05:02:24 +02:00
Rename parameter to something more sensible
This commit is contained in:
@@ -71,7 +71,7 @@ namespace core_buffer {
|
||||
const int WRITER_ZMQ_IO_THREADS = 2;
|
||||
|
||||
// Size of buffer between the receiving and writing part.
|
||||
const int WRITER_FASTQUEUE_SLOTS = 5;
|
||||
const int WRITER_FASTQUEUE_N_SLOTS = 5;
|
||||
|
||||
// Number of pulses between each statistics print out.
|
||||
const size_t STATS_MODULO = 100;
|
||||
|
||||
@@ -114,7 +114,7 @@ TEST(FaseQueue, array_parameter)
|
||||
size_t n_modules = 32;
|
||||
FastQueue<ModuleFrameBuffer> queue(
|
||||
n_modules * MODULE_N_BYTES,
|
||||
WRITER_FASTQUEUE_SLOTS);
|
||||
WRITER_FASTQUEUE_N_SLOTS);
|
||||
|
||||
ModuleFrame frame;
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ int main (int argc, char *argv[])
|
||||
MODULE_N_PIXELS, PIXEL_N_BYTES, MODULE_N_PIXELS);
|
||||
|
||||
FastQueue<ImageMetadata> queue(
|
||||
compress_frame_size * n_modules, WRITER_FASTQUEUE_SLOTS);
|
||||
compress_frame_size * n_modules, WRITER_FASTQUEUE_N_SLOTS);
|
||||
|
||||
auto ctx = zmq_ctx_new();
|
||||
zmq_ctx_set (ctx, ZMQ_IO_THREADS, WRITER_ZMQ_IO_THREADS);
|
||||
|
||||
Reference in New Issue
Block a user