void do_stop (CompletionCounter) { m_journal.debug << "Stopped"; m_stopped = true; m_work.clear (); m_resolver.cancel (); removeReference (); }
//------------------------------------------------------------------------- // Resolver void do_stop (CompletionCounter) { assert (m_stop_called == true); if (m_stopped.exchange (true) == false) { m_work.clear (); m_resolver.cancel (); removeReference (); } }