Struct

libc::thread::Thread!

source
struct Thread! { ... }

A running thread, to be joined once. No raw handle extraction or safe construction outside this module.

Methods

method joinsource

unsafe fn join(self) -> Result[*u8, i32] { ... }

Blocks until the thread exits, consuming the handle (freed even when the join fails): what entry returned, or the errno. Caller: uses the *u8 that comes back only as what entry made it; nothing here knows what it points to.