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

@@ -247,6 +247,11 @@ void Manager::SubscribeToRegionEvents(RegionEventCallback callback)
fRegionEventThread = thread(&Manager::RegionEventsSubscription, this);
}
bool Manager::SubscribedToRegionEvents()
{
return fRegionEventThread.joinable();
}
void Manager::UnsubscribeFromRegionEvents()
{
if (fRegionEventThread.joinable()) {