j
k
j a
j l
Now, how could I stop the thread in the server destructor so that the handle_accept is not called anymore?
You can wait until io_service::run() exits:
~stream_handler() { acceptor_.close();
//... thread_.join(); }
Back to the thread
Back to the list