From b436ba12da629efbed53611a7bd155eceffe1105 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Mon, 4 May 2020 09:53:27 +0200 Subject: [PATCH] Add parameters for new sf_buffer implementation --- core-buffer/include/buffer_config.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core-buffer/include/buffer_config.hpp b/core-buffer/include/buffer_config.hpp index 01c0602..1b9c3a8 100644 --- a/core-buffer/include/buffer_config.hpp +++ b/core-buffer/include/buffer_config.hpp @@ -26,7 +26,10 @@ namespace core_buffer { const size_t REPLAY_READ_BLOCK_SIZE = 100; // Size of sf_buffer RB in elements. - const size_t BUFFER_RB_SIZE = 1000; + const size_t BUFFER_INTERNAL_QUEUE_SIZE = 1000; + + // Time to sleep before retrying to read the queue. + const size_t BUFFER_QUEUE_RETRY_MS = 10; // Microseconds timeout for UDP recv. const int BUFFER_UDP_US_TIMEOUT = 10 * 1000;