mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Update FairMQStateMachine & introduce FairMQChannels
Organize sockets as a map of vectors of FairMQChannels. Update FairMQStateMachine by removing SETTINGINPUT, SETTINGOUTPUT, BIND and CONNECT states and by adding INITIALIZING_TASK, RESETTING_TASK and RESETTING_DEVICE states. Run states functions in their own thread.
This commit is contained in:
@@ -21,25 +21,25 @@ FairMQConfigurable::FairMQConfigurable()
|
||||
{
|
||||
}
|
||||
|
||||
void FairMQConfigurable::SetProperty(const int key, const string& value, const int slot /*= 0*/)
|
||||
void FairMQConfigurable::SetProperty(const int key, const string& value)
|
||||
{
|
||||
LOG(ERROR) << "Reached end of the property list. SetProperty(" << key << ", " << value << ") has no effect.";
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
string FairMQConfigurable::GetProperty(const int key, const string& default_ /*= ""*/, const int slot /*= 0*/)
|
||||
string FairMQConfigurable::GetProperty(const int key, const string& default_ /*= ""*/)
|
||||
{
|
||||
LOG(ERROR) << "Reached end of the property list. The requested property " << key << " was not found.";
|
||||
return default_;
|
||||
}
|
||||
|
||||
void FairMQConfigurable::SetProperty(const int key, const int value, const int slot /*= 0*/)
|
||||
void FairMQConfigurable::SetProperty(const int key, const int value)
|
||||
{
|
||||
LOG(ERROR) << "Reached end of the property list. SetProperty(" << key << ", " << value << ") has no effect.";
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int FairMQConfigurable::GetProperty(const int key, const int default_ /*= 0*/, const int slot /*= 0*/)
|
||||
int FairMQConfigurable::GetProperty(const int key, const int default_ /*= 0*/)
|
||||
{
|
||||
LOG(ERROR) << "Reached end of the property list. The requested property " << key << " was not found.";
|
||||
return default_;
|
||||
|
Reference in New Issue
Block a user