Skip to content

Commit

Permalink
Fix: AtomicBool d_isStarted flag
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Malygin <[email protected]>
  • Loading branch information
678098 committed May 20, 2024
1 parent 9d3ea25 commit 7407f7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/groups/mqb/mqba/mqba_domainmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ void DomainManager::createDomain(
const bsl::string& name,
const mqbi::DomainFactory::CreateDomainCb& callback)
{
// executed by *ANY* thread

if (!d_isStarted) {
BALL_LOG_INFO << "Not creating domain [" << name << "] at this time "
<< "because self is stopping.";
Expand Down
6 changes: 1 addition & 5 deletions src/groups/mqb/mqba/mqba_domainmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
// This component is thread safe.

// MQB

#include <mqbconfm_messages.h>
#include <mqbi_domain.h>

Expand Down Expand Up @@ -65,9 +64,6 @@ namespace BloombergLP {
namespace bslmt {
class Latch;
}
namespace bsls {
class AtomicInt;
}
namespace mqbblp {
class ClusterCatalog;
}
Expand Down Expand Up @@ -189,7 +185,7 @@ class DomainManager BSLS_CPP11_FINAL : public mqbi::DomainFactory {
DomainSpMap d_domains;
// Map of domains

bool d_isStarted;
bsls::AtomicBool d_isStarted;
// Is the domain manager started

bslma::Allocator* d_allocator_p;
Expand Down

0 comments on commit 7407f7d

Please sign in to comment.