[−][src]Function stop_thread::kill_thread_unix
pub unsafe fn kill_thread_unix<T>(handle: JoinHandle<T>)
This is supported on Unix only.
Kills the thread using pthread_cancel
.
Safety
Only kills the thread if it has enabled cancellation, then performs cleanup.
See man pthread_cancel
for more information.