boost::asio::thread_pool::wait

Waits for threads to complete.

Synopsis

Declared in <boost/asio/thread_pool.hpp>

void
wait();

Description

This function blocks until the threads in the pool have completed. If stop() is not called prior to wait(), the wait() call will wait until the pool has no more outstanding work.

wait() is synonymous with join().

Created with MrDocs