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)
| 278 | #[inline(always)] |
| 279 | pub fn push_shared_job(&'static self, job_ref: JobRef) { |
| 280 | self.shared_queue.push(job_ref); |
| 281 | // Try to wake up a worker to execute this job. This is relatively cheap |
| 282 | // if no workers are waiting. A searching worker will find the job |
| 283 | // without being woken, unless it is waiting on a `join`. |
| 284 | let waiting_bitmask = self.waiting_bitmask.load(Ordering::Relaxed); |
| 285 | let searching = self.searching.load(Ordering::Relaxed); |