fix msvc 2003 build issue

This commit is contained in:
Arvid Norberg 2012-06-14 05:38:56 +00:00
parent ca7d1c343b
commit f5e89fae4c
1 changed files with 3 additions and 3 deletions

View File

@ -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)