devela::_dep::rustix::thread

Function set_name

pub fn set_name(name: &CStr) -> Result<(), Errno> 
Available on crate feature dep_rustix only.
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