mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
git-svn-id: https://subversion.gsi.de/fairroot/fairbase/trunk@20162 0381ead4-6506-0410-b988-94b70fbc4730
43 lines
557 B
C++
43 lines
557 B
C++
/*
|
|
* FairMQStateMachine.cxx
|
|
*
|
|
* Created on: Oct 25, 2012
|
|
* Author: dklein
|
|
*/
|
|
|
|
#include "FairMQStateMachine.h"
|
|
|
|
|
|
FairMQStateMachine::FairMQStateMachine() :
|
|
fState(START)
|
|
{
|
|
}
|
|
|
|
FairMQStateMachine::RunStateMachine()
|
|
{
|
|
void* status; //necessary for pthread_join
|
|
pthread_t state;
|
|
|
|
changeState(INIT);
|
|
|
|
while(fState != END) {
|
|
switch(fState) {
|
|
case INIT:
|
|
pthread_create(&state, NULL, &FairMQStateMachine::Init, this);
|
|
break;
|
|
|
|
}
|
|
pthread_join(state, &status);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
FairMQStateMachine::~FairMQStateMachine()
|
|
{
|
|
}
|
|
|