pub fn shutdown(&self) {
        if self.shutdown_count.fetch_sub(1, Ordering::AcqRel) == 1 {
            for (i, thread_info) in self.thread_infos.iter().enumerate() {
                if thread_info.should_shutdown.set() {
                    self.notify_worker_latch_is_set(i);
                }
                // thread_info.should_shutdown.set_and_tickle_one(i);
            }
        }
    }
/// Signals that the thread-pool which owns this registry has been
/// dropped. The worker threads will gradually terminate, once any
/// extant work is completed.
Signals that the thread-pool which owns this registry has been
dropped. The worker threads will gradually terminate, once any
extant work is completed.
Signals that the thread - pool which owns this registry has been dropped . The worker threads will gradually terminate once any extant work is completed .
pub fn shutdown(&self) {
        if self.shutdown_count.fetch_sub(1, Ordering::AcqRel) == 1 {
            for (i, thread_info) in self.thread_infos.iter().enumerate() {
                if thread_info.should_shutdown.set() {
                    self.notify_worker_latch_is_set(i);
                }
                // thread_info.should_shutdown.set_and_tickle_one(i);
            }
        }
    }
pub fn shutdown ( & self ) { if self . shutdown_count . fetch_sub ( 1 , Ordering :: AcqRel ) == 1 { for ( i , thread_info ) in self . thread_infos . iter ( ) . enumerate ( ) { if thread_info . should_shutdown . set ( ) { self . notify_worker_latch_is_set ( i ) ; } // thread_info.should_shutdown.set_and_tickle_one(i); } } }
Signals that the thread-pool which owns this registry has been
dropped.
Signals that the thread - pool which owns this registry has been dropped .
&self
&self