[][src]Function stop_thread::kill_thread_windows

pub unsafe fn kill_thread_windows<T>(handle: JoinHandle<T>, exit_code: u32)
This is supported on Windows only.

Kills the thread using TerminateThread, specifying the thread's exit code.

Safety

Forcibly and immediately stops the thread, without any cleanup. See https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminatethread for more information.