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