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

◆ close()

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

Close all resources and worker threads.

Remarks
The close 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.