Skip to main content

stop_and_join

Function stop_and_join 

Source
pub(crate) fn stop_and_join(slot: &Mutex<Option<JoinHandle<()>>>, inner: &Inner)
Expand description

join_held_worker behind the lifecycle lock, for the stop paths that want nothing else from it. A lock poisoned by an unrelated panic is taken anyway: it must never be what leaves a worker thread running into interpreter finalization.