zircon/system/core/devmgr/fshost/fs-manager.cc
FsManager::~FsManager() {
  if (global_shutdown_.has_handler()) {
    event_.signal(0, FSHOST_SIGNAL_EXIT);
    auto deadline = zx::deadline_after(zx::sec(2));
    zx_signals_t pending;
    event_.wait_one(FSHOST_SIGNAL_EXIT_DONE, deadline, &pending);
  }
}
// In the event that we haven't been explicitly signalled, tear ourself down.
In the event that we haven't been explicitly signalled, tear ourself down.
In the event that we haven ' t been explicitly signalled tear ourself down .
FsManager::~FsManager() {
  if (global_shutdown_.has_handler()) {
    event_.signal(0, FSHOST_SIGNAL_EXIT);
    auto deadline = zx::deadline_after(zx::sec(2));
    zx_signals_t pending;
    event_.wait_one(FSHOST_SIGNAL_EXIT_DONE, deadline, &pending);
  }
}
FsManager :: ~ FsManager ( ) { if ( global_shutdown_ . has_handler ( ) ) { event_ . signal ( 0 , FSHOST_SIGNAL_EXIT ) ; auto deadline = zx :: deadline_after ( zx :: sec ( 2 ) ) ; zx_signals_t pending ; event_ . wait_one ( FSHOST_SIGNAL_EXIT_DONE , deadline , & pending ) ; } }
In the event that we haven't been explicitly signalled, tear ourself down.
In the event that we haven ' t been explicitly signalled tear ourself down .