thread_join(2)

DESCRIPTION

Waits for a thread and collects its result.

SYNOPSIS

long thread_join(uint32_t tid, void *result);

RETURN VALUE

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

ERRORS

  • -EFAULT
    • .
  • -EINVAL
    • .
  • -ESRCH
    • .

ABI

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