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

Method grow

src/thread_pool.rs:247–249  ·  view source on GitHub ↗

Adds the given number of threads to the thread pool. Returns the new size of the pool. The new size may be smaller than requested if all the seats in the thread pool are occupied. See [`ThreadPool::resize`] for more information about resizing.

(&'static self, added_threads: usize)

Source from the content-addressed store, hash-verified

245 }
246 core::mem::forget(abort_guard);
247 }
248
249 /// Returns an opaque identifier for this thread pool.
250 #[inline(always)]
251 pub fn id(&'static self) -> usize {
252 // We can rely on `self` not to change since it's a static ref.

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected