Пример #1
0
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);
    };
}
Пример #2
0
void torrent_wait(bool& done, aux::session_impl& ses)
{
	blocking_call();
	mutex::scoped_lock l(ses.mut);
	while (!done) { ses.cond.wait(l); };
}