void torrent_wait(bool& done, aux::session_impl& ses) { blocking_call(); std::unique_lock<std::mutex> l(ses.mut); while (!done) { ses.cond.wait(l); }; }
void torrent_wait(bool& done, aux::session_impl& ses) { blocking_call(); mutex::scoped_lock l(ses.mut); while (!done) { ses.cond.wait(l); }; }