mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-06 15:34:14 +02:00
Remove unused WriterManager parameters
This commit is contained in:
@@ -50,7 +50,7 @@ void writer_utils::create_destination_folder(const string& output_file)
|
||||
|
||||
WriterManager::WriterManager(const unordered_map<string, DATA_TYPE>& parameters_type):
|
||||
parameters_type(parameters_type), logs(10),
|
||||
writing_flag(false), killed_flag(false),
|
||||
writing_flag(false), running_flag(true),
|
||||
n_frames_to_receive(0), n_frames_to_write(0)
|
||||
{
|
||||
#ifdef DEBUG_OUTPUT
|
||||
@@ -73,27 +73,14 @@ void WriterManager::stop()
|
||||
running_flag = false;
|
||||
}
|
||||
|
||||
void WriterManager::kill()
|
||||
{
|
||||
#ifdef DEBUG_OUTPUT
|
||||
using namespace date;
|
||||
cout << "[" << std::chrono::system_clock::now() << "]";
|
||||
cout << "[WriterManager::kills] Killing writer manager." << endl;
|
||||
#endif
|
||||
|
||||
killed_flag = true;
|
||||
|
||||
stop();
|
||||
}
|
||||
|
||||
string WriterManager::get_status()
|
||||
{
|
||||
if (writing_flag) {
|
||||
return "writing"
|
||||
} else if (receiving_flag) {
|
||||
return "receiving"
|
||||
} else {
|
||||
return "writing";
|
||||
} else if (running_flag) {
|
||||
return "ready";
|
||||
} else {
|
||||
return "Error.. I guess. This shouldn't be possible? Are you sure you are using it correctly?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ class WriterManager
|
||||
const std::deque<WriterManagerLog> logs;
|
||||
|
||||
std::atomic<bool> writing_flag;
|
||||
std::atomic<bool> killed_flag;
|
||||
std::atomic<bool> running_flag;
|
||||
|
||||
std::atomic<int64_t> n_frames_to_receive;
|
||||
std::atomic<int64_t> n_frames_to_write;
|
||||
@@ -44,7 +44,6 @@ class WriterManager
|
||||
|
||||
void start(const std::unordered_map<std::string, boost::any>& new_parameters);
|
||||
void stop();
|
||||
void kill();
|
||||
std::string get_status();
|
||||
std::unordered_map<std::string, uint64_t> get_statistics() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user