Cleanup, fixes and new features around Sinks
- Jul 26, 2023
-
-
use std::promise/future instead of misusing std::condition_variable Replicated from identical commit in LHCb FSRSink.cpp file (lhcb/LHCb@e4b7fdf9)
-
-
In particuler : - made it a free function - fixed bad usage of move semantic in favor of references
-
Also implemented a default, empty reset.
-
The Sinks have now to implement a flush method, called both at the end (finalize) and regularly if auto flush is activated (via non 0 AutoFlushPeriod property). Existing Sinks have been adapted. Also added unit testing for BaseSink, both for the regular flushing and previous existing (and not yet tested) features.
-
-