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)
| 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. |