fix msvc 2003 build issue
This commit is contained in:
parent
ca7d1c343b
commit
f5e89fae4c
|
@ -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<type>, &r, &done, &ses.cond, &ses.mut, boost::function<type(void)>(boost::bind(&torrent:: x, t)))); \
|
||||
ses.m_io_service.post(boost::bind(&fun_ret<type >, &r, &done, &ses.cond, &ses.mut, boost::function<type(void)>(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<type>, &r, &done, &ses.cond, &ses.mut, boost::function<type(void)>(boost::bind(&torrent:: x, t, a1)))); \
|
||||
ses.m_io_service.post(boost::bind(&fun_ret<type >, &r, &done, &ses.cond, &ses.mut, boost::function<type(void)>(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<type>, &r, &done, &ses.cond, &ses.mut, boost::function<type(void)>(boost::bind(&torrent:: x, t, a1, a2)))); \
|
||||
ses.m_io_service.post(boost::bind(&fun_ret<type >, &r, &done, &ses.cond, &ses.mut, boost::function<type(void)>(boost::bind(&torrent:: x, t, a1, a2)))); \
|
||||
t.reset(); \
|
||||
do { ses.cond.wait(l); } while(!done)
|
||||
|
||||
|
|
Loading…
Reference in New Issue