mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Implement Device::TransitionTo() and test it
This commit is contained in:
committed by
Dennis Klein
parent
1c7da53386
commit
74d301a16f
@@ -494,6 +494,8 @@ class FairMQDevice
|
||||
void WaitForState(fair::mq::State state);
|
||||
void WaitForState(const std::string& state) { WaitForState(fair::mq::StateMachine::GetState(state)); }
|
||||
|
||||
void TransitionTo(const fair::mq::State state);
|
||||
|
||||
void SubscribeToStateChange(const std::string& key, std::function<void(const fair::mq::State)> callback) { fStateMachine.SubscribeToStateChange(key, callback); }
|
||||
void UnsubscribeFromStateChange(const std::string& key) { fStateMachine.UnsubscribeFromStateChange(key); }
|
||||
|
||||
|
Reference in New Issue
Block a user