Skip to main content

get_thread_name

Function get_thread_name 

Source
pub fn get_thread_name() -> Result<CString, Errno>
Expand description

Retourne le nom du thread courant.

§Allocation

Convention 4 ADR-021 exception explicite : « la sémantique exige un type owned ». Le kernel écrit ≤ 16 octets dans un buffer transient ; le caller récupère une CString qui peut sortir du frame. Allocation bornée à 16 octets (un seul Box<[u8]>), happy-path.

§Errors

  • Aucune en pratique pour cette opération.