pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
fn schedule_next_tls_dtor_for_active_thread(&mut self) -> InterpResult<'tcx> { ... }
}
Provided Methods
sourcefn schedule_next_tls_dtor_for_active_thread(&mut self) -> InterpResult<'tcx>
fn schedule_next_tls_dtor_for_active_thread(&mut self) -> InterpResult<'tcx>
Schedule an active thread’s TLS destructor to run on the active thread. Note that this function does not run the destructors itself, it just schedules them one by one each time it is called and reenables the thread so that it can be executed normally by the main execution loop.
Note: we consistently run TLS destructors for all threads, including the main thread. However, it is not clear that we should run the TLS destructors for the main thread. See issue: https://github.com/rust-lang/rust/issues/28129.