[−][src]Function linux::syscall::set_tid_address
pub unsafe fn set_tid_address(tidptr: Option<&AtomicInt>) -> c_int
Sets the address on which the kernel will perform a futex_wake operation upon thread exit.
[argument, tidptr]
The address or None
to disable this feature.
[return_value] Returns the callers thread id.
= Remarks
The kernel will first write 0
to this address and then perform a futex_wake.
This is unsafe because the address might no longer be valid when the thread exits.
= See also
- link:man:set_tid_address(2)