CommunicationState4::CommunicationState4(const IOServicePtr& io_service,
const HAConfigPtr& config)
- : CommunicationState(io_service, config), connecting_clients_() {
+ : CommunicationState(io_service, config), connecting_clients_(),
+ mutex_(new mutex()) {
}
void
bool
CommunicationState4::failureDetectedInternal() const {
return ((config_->getMaxUnackedClients() == 0) ||
- (getUnackedClientsCount() > config_->getMaxUnackedClients()));
+ (getUnackedClientsCountInternal() > config_->getMaxUnackedClients()));
}
size_t
CommunicationState6::CommunicationState6(const IOServicePtr& io_service,
const HAConfigPtr& config)
- : CommunicationState(io_service, config), connecting_clients_() {
+ : CommunicationState(io_service, config), connecting_clients_(),
+ mutex_(new mutex()){
}
void
bool
CommunicationState6::failureDetectedInternal() const {
return ((config_->getMaxUnackedClients() == 0) ||
- (getUnackedClientsCount() > config_->getMaxUnackedClients()));
+ (getUnackedClientsCountInternal() > config_->getMaxUnackedClients()));
}
size_t