TBufferMerger is a class to facilitate writing data in parallel from multiple threads, while writing to a single output file.
A TBufferMergerFile is similar to a TMemFile, but when data is written to it, it is appended to the TBufferMerger queue.
Its purpose is similar to TParallelMergingFile, but instead of using processes that connect to a network socket, TBufferMerger uses threads that each write to a TBufferMergerFile, which in turn push data into a queue managed by the TBufferMerger.
The TBufferMerger merges all data into the output file on disk.
Definition at line 41 of file TBufferMerger.hxx.
Returns a TBufferMergerFile to which data can be written.
At the end, all TBufferMergerFiles get merged into the output file. The user is responsible to "cd" into the file to associate objects such as histograms or trees to it.
After the creation of this file, the user must reset the kMustCleanup bit on any objects attached to it and take care of their deletion, as there is a possibility that a race condition will happen that causes a crash if ROOT manages these objects.
Definition at line 54 of file TBufferMerger.cxx.