thread_exit(2)

DESCRIPTION

Terminate the calling user thread.

Terminates the calling thread and records result for a joining
thread. A process becomes waitable after its last thread exits.

SYNOPSIS

long thread_exit(long result);

RETURN VALUE

  • Does not return.