Searched refs:num_to_wake (Results 1 – 1 of 1) sorted by relevance
332 let num_to_wake = std::cmp::min(num_jobs, num_sleepers); in new_jobs() localVariable333 self.wake_any_threads(num_to_wake); in new_jobs()335 let num_to_wake = std::cmp::min(num_jobs - num_awake_but_idle, num_sleepers); in new_jobs() localVariable336 self.wake_any_threads(num_to_wake); in new_jobs()341 fn wake_any_threads(&self, mut num_to_wake: u32) { in wake_any_threads()342 if num_to_wake > 0 { in wake_any_threads()345 num_to_wake -= 1; in wake_any_threads()346 if num_to_wake == 0 { in wake_any_threads()