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