thread_detach(2)

DESCRIPTION

Marks a thread as detached.

SYNOPSIS

long thread_detach(uint32_t tid);

RETURN VALUE

  • Returns a non-negative result on success. Negative values are ABI errno codes.

ERRORS

  • -EINVAL
    • The thread already has a joiner.
  • -ESRCH
    • The thread does not exist.

ABI

Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.