List of active handlers in boost io_service

When testing building modules for a client / server system, I encountered a problem when my io_service did not free after I turned off all active handlers (which I knew).

After a day of trawling through the code, I came across an error handler that was not integrated into my client close routines.

My question is this: is there an easy way to list the active active handlers in boost io_service ?, if not, why not?

Any insight would be appreciated.

+5
source share
1 answer

There are several problems:

  • , concurrency.
  • , , .

, boost:: asio, .

, - . (, ) , . , shared_ptr , .

stop() , , - . .

+1

All Articles