I think a program i'm writing has a problem executing tasks submitted to a io_context quickly enough. In particular the program runs fine but over a long period of time it appears that some tasks are never executed after being submitted for execution leading to an eventual crash as the program thinks it's been disconnected from the rest of the system. I can see that there's a boost::asio::execution::outstanding_work property that i can access but i can't actually retrieve the value from it.
Is there any way to periodically report how many tasks a IO Context has on its queue to execute so i can determine if there is some sort of backup concurring?
Hi,
I think a program i'm writing has a problem executing tasks submitted to a
io_context
quickly enough. In particular the program runs fine but over a long period of time it appears that some tasks are never executed after being submitted for execution leading to an eventual crash as the program thinks it's been disconnected from the rest of the system. I can see that there's aboost::asio::execution::outstanding_work
property that i can access but i can't actually retrieve the value from it.Is there any way to periodically report how many tasks a IO Context has on its queue to execute so i can determine if there is some sort of backup concurring?
Thanks in advance