Ejemplo n.º 1
0
    void stop ()
    {
        stop_async ();

        m_journal.debug << "Waiting to stop";
        m_stop_complete.wait();
        m_journal.debug << "Stopped";
    }
Ejemplo n.º 2
0
    void stop () override
    {
        stop_async ();

        JLOG(m_journal.debug()) << "Waiting to stop";
        std::unique_lock<std::mutex> lk{m_mut};
        m_cv.wait(lk, [this]{return m_asyncHandlersCompleted;});
        lk.unlock();
        JLOG(m_journal.debug()) << "Stopped";
    }
Ejemplo n.º 3
0
 bool performance_counter::stop(naming::id_type const& targetid,
     error_code& ec)
 {
     return stop_async(targetid).get(ec);
 }
Ejemplo n.º 4
0
 void stop ()
 {
     stop_async ();
     m_event.wait();
 }