16 if(name.length() == 0) {
22 if((chain ==
nullptr) && (
gFragment ==
nullptr)) {
25 if(chain ==
nullptr) {
35 fInputChain(chain), fFragment(nullptr), fSelfStopping(true)
45 while(outQueue->Size() != 0u) {
46 std::shared_ptr<const TFragment> event;
70 outQueue->SetFinished();
80 std::this_thread::sleep_for(std::chrono::milliseconds(1000));
84 std::shared_ptr<TFragment> frag = std::make_shared<TFragment>();
88 frag->SetEntryNumber();
std::atomic_size_t & ItemsPopped()
std::atomic_long & InputSize()
static StoppableThread * Get(const std::string &name)
void IncrementItemsPopped()
std::vector< std::shared_ptr< ThreadsafeQueue< std::shared_ptr< const TFragment > > > > fOutputQueues
void ClearQueue() override
static TFragmentChainLoop * Get(std::string name="", TChain *chain=nullptr)
TFragmentChainLoop(const TFragmentChainLoop &)=delete
bool Iteration() override