Re: [Boost-users] boost::asio::io_service - cancel posted work

6 Oct
2011
6 Oct
'11
10:30 a.m.
Hi, Christopher.
You can destroy io_service instance. asio::io_service::~io_service destroys all callbacks. Another solution is to close acceptor (and all other instances of asio::basic_io_object related to io_service instance), call asio::io_service::reset() and clear all queued callbacks by running them (asio::io_service::run/poll etc). Regards, Marat Abrarov.

6 Oct
6 Oct
5:08 p.m.
New subject: [Boost-users] boost::asio::io_service - cancel posted work
Marat Abrarov <abrarov <at> mail.ru> writes:
to
Thank you so much, all my problems just disappeared and my memory leak detector has applauded. The key was acceptor::close() I did a little dance.
4979
Age (days ago)
4979
Last active (days ago)
1 comments
2 participants
participants (2)
-
Christopher Pisz
-
Marat Abrarov