/// Provision threads takes a number of threads that need to be made available.
/// It will try to unpark threads from the dynamic pool, and spawn more threads if needs be.
Provision threads takes a number of threads that need to be made available.
It will try to unpark threads from the dynamic pool, and spawn more threads if needs be.
Provision threads takes a number of threads that need to be made available . It will try to unpark threads from the dynamic pool and spawn more threads if needs be .
pub fn provision_threads(&'static self, n: usize) {
        for i in 0..n {
            if !self.unpark_thread() {
                let new_threads = n - i;
                trace!(
                    "no more threads to unpark, spawning {} new threads",
                    new_threads
                );
                return self.spawn_threads(new_threads);
            }
        }
    }
pub fn provision_threads ( & ' static self , n : usize ) { for i in 0 .. n { if ! self . unpark_thread ( ) { let new_threads = n - i ; trace ! ( " " new_threads ) ; return self . spawn_threads ( new_threads ) ; } } }
Provision threads takes a number of threads that need to be made available.
Provision threads takes a number of threads that need to be made available .
&'static self
n
usize