diff --git a/src/torrent_handle.cpp b/src/torrent_handle.cpp index 3e32ec99b..ffe3ff86f 100644 --- a/src/torrent_handle.cpp +++ b/src/torrent_handle.cpp @@ -234,7 +234,7 @@ namespace libtorrent session_impl& ses = t->session(); \ type r; \ mutex::scoped_lock l(ses.mut); \ - ses.m_io_service.post(boost::bind(&fun_ret, &r, &done, &ses.cond, &ses.mut, boost::function(boost::bind(&torrent:: x, t)))); \ + ses.m_io_service.post(boost::bind(&fun_ret, &r, &done, &ses.cond, &ses.mut, boost::function(boost::bind(&torrent:: x, t)))); \ t.reset(); \ do { ses.cond.wait(l); } while(!done) @@ -245,7 +245,7 @@ namespace libtorrent session_impl& ses = t->session(); \ type r; \ mutex::scoped_lock l(ses.mut); \ - ses.m_io_service.post(boost::bind(&fun_ret, &r, &done, &ses.cond, &ses.mut, boost::function(boost::bind(&torrent:: x, t, a1)))); \ + ses.m_io_service.post(boost::bind(&fun_ret, &r, &done, &ses.cond, &ses.mut, boost::function(boost::bind(&torrent:: x, t, a1)))); \ t.reset(); \ do { ses.cond.wait(l); } while(!done) @@ -256,7 +256,7 @@ namespace libtorrent session_impl& ses = t->session(); \ type r; \ mutex::scoped_lock l(ses.mut); \ - ses.m_io_service.post(boost::bind(&fun_ret, &r, &done, &ses.cond, &ses.mut, boost::function(boost::bind(&torrent:: x, t, a1, a2)))); \ + ses.m_io_service.post(boost::bind(&fun_ret, &r, &done, &ses.cond, &ses.mut, boost::function(boost::bind(&torrent:: x, t, a1, a2)))); \ t.reset(); \ do { ses.cond.wait(l); } while(!done)