Function rustix::thread::set_name

source ·
pub fn set_name(name: &CStr) -> Result<()>
Expand description

Set the name of the calling thread.

Unlike pthread_setname_np, this function silently truncates the name to 16 bytes, as the Linux syscall does.

§References