mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 18:11:49 +00:00
Use FairMQDevice::CatchSignals for Tutorial7
This commit is contained in:
committed by
Mohammad Al-Turany
parent
dc6fb4698c
commit
8b71e4d20b
@@ -83,6 +83,11 @@ void base_GenericSampler<T,U,K,L>::Run()
|
||||
{
|
||||
fCurrentIdx--;
|
||||
}
|
||||
|
||||
if (!CheckCurrentState(RUNNING))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (CheckCurrentState(RUNNING) && fContinuous);
|
||||
@@ -128,7 +133,7 @@ void base_GenericSampler<T,U,K,L>::SetContinuous(bool flag)
|
||||
template <typename T, typename U, typename K, typename L>
|
||||
void base_GenericSampler<T,U,K,L>::ResetEventCounter()
|
||||
{
|
||||
while (CheckCurrentState(RUNNING))
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user