Class used to close files, each in its own thread, to avoid slowing down while file splitting.
More...
#include <EventWriterV4.h>
|
| FileCloserV4 (int poolSize) |
| Constructor. More...
|
|
void | close () |
| Close this object by ending all threads in pool. More...
|
|
void | closeAsyncFile (std::shared_ptr< std::fstream > &afc, std::shared_ptr< std::future< void >> future) |
| Close file given by filestream after pending write is finished. More...
|
|
Class used to close files, each in its own thread, to avoid slowing down while file splitting.
◆ FileCloserV4()
evio::FileCloserV4::FileCloserV4 |
( |
int |
poolSize | ) |
|
|
inline |
Constructor.
- Parameters
-
poolSize | size of pool of threads to close files. |
◆ close()
void evio::FileCloserV4::close |
( |
| ) |
|
|
inline |
Close this object by ending all threads in pool.
◆ closeAsyncFile()
void evio::FileCloserV4::closeAsyncFile |
( |
std::shared_ptr< std::fstream > & |
afc, |
|
|
std::shared_ptr< std::future< void >> |
future |
|
) |
| |
|
inline |
Close file given by filestream after pending write is finished.
- Parameters
-
afc | file stream to close. |
future | object representing a write that is in progress. |
The documentation for this class was generated from the following file: