mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 00:34:13 +02:00
Add naive buffer implementation
This commit is contained in:
@@ -20,6 +20,9 @@ class SFWriter {
|
||||
H5::DataSet daq_rec_dataset_;
|
||||
H5::DataSet n_received_packets_dataset_;
|
||||
|
||||
std::unique_ptr<char[]> image_buffer_;
|
||||
size_t image_buffer_count_;
|
||||
|
||||
public:
|
||||
SFWriter(
|
||||
const std::string& output_file,
|
||||
|
||||
@@ -29,6 +29,9 @@ namespace core_buffer {
|
||||
const size_t BUFFER_RB_SIZE = 1000;
|
||||
|
||||
const int WRITER_ZMQ_IO_THREADS = 16;
|
||||
|
||||
// How many frames to buffer before flushing to file.
|
||||
const size_t WRITER_BUFFER_SIZE = 100;
|
||||
}
|
||||
|
||||
#endif //BUFFERCONFIG_HPP
|
||||
|
||||
Reference in New Issue
Block a user