xtd 0.2.0
Loading...
Searching...
No Matches

◆ join_all() [1/3]

static void xtd::threading::thread_pool::join_all ( )
static

Join all resources and worker threads.

Remarks
The join_all method waits for the end of running worker threads, but will not wait for unstarted worker threads.
You can use this method to ensure that all pending threads are closed, and that resources are also closed.
#startup_calls xtd::thread_pool::close method.
xtd::threading::thread::join_all, xtd::threading::thread::join_all(int32), xtd::threading::thread::join_all(const xtd::time_span&) methods call xtd::threading::thread_pool::close method too.