Пример #1
0
void Follower::on_server_disconnected() {
  log_->debug("follower %", __FUNCTION__);
  // starting monitor
  if (!is_destructing_) {
    quit_.store(false);
    monitor_ = std::async(std::launch::async, [this]() { monitor(); });
  }
  // calling user callback
  if (osd_) osd_();
}
Пример #2
0
void ShmdataFollower::on_server_disconnected() {
  if (osd_) osd_();
}