std::mutex _threadCreationMutex
void sendExceptions(const std::string &exceptionMessage)
Request the sending of exceptions.
std::atomic_bool _isSendingExceptions
void forEach(const std::function< void(size_t, boost::shared_ptr< Domain > &)> &executeMe)
Iterate all Domains under the container lock.
std::atomic_bool _threadIsRunning
boost::shared_ptr< Domain > getDomain(size_t key)
Return the shared pointer to the Domain for a key.
std::map< size_t, boost::weak_ptr< Domain > > _domains
void distributeExceptions()
Endless loop executed in the thread.
cppext::future_queue< std::string > _startExceptionDistribution
std::thread _distributorThread