boost::asio::io_service occupied queue lengths for timers and posts
I'm fairly new to boost::asio, but I'm working on a project that has already existed for a few years and uses asio extensively. My current assignment is to add periodic metrics about various things the system is doing. One of the metrics is to observe how deep the boost::asio::io_service work queues and timer queues become at an arbitrary period of runtime. So I need to be able to ask a boost:asio::io_service object how many things it has in its queues. To illustrate what I'm asking, consider the following: boost::asio::io_service asio_service; asio_service.post( boost::bind( do_work, "eat" )