Boost logo

Boost Users :

Subject: [Boost-users] How to track boost::asio pending handlers
From: Thierry Morigault (thierry.morigault_at_[hidden])
Date: 2014-11-14 07:29:12


Hi,

I am debugging a huge application with numbers of handlers posted in a boost::asio::io_service, running on Windows 7, Visual Studio 2012 and with boost 1.55. My problem is that the io_service doesn't stop because of pending handlers ... And i can't know what are precisely these handlers : there is only a function in boost::io_service which give the number of pending handlers.

Is there a way to display the name of the different pending handlers in the io_service ? It can be so helpful !

I know the macro BOOST_ASIO_ENABLE_HANDLER_TRACKING but this only prints the boost::asio internal functions names (async_accept, async write etc.), and not my proper posted handlers.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net