Add a non-daemon thread handle to the shutdown registry
(
vm: &VirtualMachine,
inner: &Arc<parking_lot::Mutex<ThreadHandleInner>>,
done_event: &Arc<(parking_lot::Mutex<bool>, parking_lot::Condvar)>,
)
| 700 | |
| 701 | /// Add a non-daemon thread handle to the shutdown registry |
| 702 | fn add_to_shutdown_handles( |
| 703 | vm: &VirtualMachine, |
| 704 | inner: &Arc<parking_lot::Mutex<ThreadHandleInner>>, |
| 705 | done_event: &Arc<(parking_lot::Mutex<bool>, parking_lot::Condvar)>, |
| 706 | ) { |
| 707 | let mut handles = vm.state.shutdown_handles.lock(); |
| 708 | handles.push((Arc::downgrade(inner), Arc::downgrade(done_event))); |
| 709 | } |
| 710 | |
| 711 | fn remove_from_shutdown_handles( |
| 712 | vm: &VirtualMachine, |
no test coverage detected