Function origin::at_thread_exit [−][src]
pub unsafe fn at_thread_exit(
func: unsafe extern "C" fn(_: *mut c_void),
obj: *mut c_void
)
Expand description
Registers a function to call when the current thread exits.
Safety
This arranges for func
to be called, and passed obj
, when the thread
exits.