Add bool FairMQTransportFactory::SubscribedToRegionEvents()

This commit is contained in:
Alexey Rybalchenko
2020-05-10 13:10:49 +02:00
parent 59e32437a2
commit c8fc5ad33f
9 changed files with 23 additions and 0 deletions

View File

@@ -132,6 +132,11 @@ void FairMQTransportFactoryZMQ::SubscribeToRegionEvents(FairMQRegionEventCallbac
fRegionEventThread = thread(&FairMQTransportFactoryZMQ::RegionEventsSubscription, this);
}
bool FairMQTransportFactoryZMQ::SubscribedToRegionEvents()
{
return fRegionEventThread.joinable();
}
void FairMQTransportFactoryZMQ::UnsubscribeFromRegionEvents()
{
if (fRegionEventThread.joinable()) {