MCPcopy Create free account
hub / github.com/NthTensor/Forte / depopulate

Method depopulate

src/thread_pool.rs:280–282  ·  view source on GitHub ↗

Removes all worker threads from the thread pool. This should only be done carefully, as blocking on an empty pool can cause a deadlock. See [`ThreadPool::resize_to`] for more information about resizing.

(&'static self)

Source from the content-addressed store, hash-verified

278 }
279 }
280}
281
282// -----------------------------------------------------------------------------
283// Thread pool resizing
284
285impl ThreadPool {

Callers 15

spawn_cancel_safetyFunction · 0.80
join_basicFunction · 0.80
join_deepFunction · 0.80
join_wideFunction · 0.80
scope_emptyFunction · 0.80
scope_resultFunction · 0.80
scope_twoFunction · 0.80
scope_borrowFunction · 0.80
scope_borrow_twiceFunction · 0.80
scope_futureFunction · 0.80

Calls 1

resize_toMethod · 0.80

Tested by 15

spawn_cancel_safetyFunction · 0.64
join_basicFunction · 0.64
join_deepFunction · 0.64
join_wideFunction · 0.64
scope_emptyFunction · 0.64
scope_resultFunction · 0.64
scope_twoFunction · 0.64
scope_borrowFunction · 0.64
scope_borrow_twiceFunction · 0.64
scope_futureFunction · 0.64