Exemplo n.º 1
0
 virtual void stop() override
 {
     PARENT::stop();
     if (queryInputStarted(0))
     {
         if (!executeDependencies(abortSoon ? WhenFailureId : WhenSuccessId))
             abortSoon = true;
     }
 }
Exemplo n.º 2
0
 virtual void stop() override
 {
     if (output)
     {
         output->stop();
         output.clear();
     }
     if (queryInputStarted(0))
     {
         ActPrintLog("SORT waiting barrier.2");
         barrier->wait(false);
         ActPrintLog("SORT barrier.2 raised");
     }
     PARENT::stop();
     if (queryInputStarted(0))
     {
         ActPrintLog("SORT waiting for merge");
         sorter->stopMerge();
     }
     dataLinkStop();
 }