Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pthread_exit(3thr) — Ultrix/UWS 4.4 RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pthread_exit(3thr)

Name

pthread_exit − Terminates the calling thread

Syntax

#include <pthread.h>

int pthread_exit (status)
pthread_addr_t status;

Arguments

status Address value copied and returned to the caller of pthread_join. 

Description

This routine terminates the calling thread and makes a status value available to any thread that calls pthread_join and specifies the terminating thread. 

An implicit call to pthread_exit is issued when a thread returns from the start routine that was used to create it.  The function’s return value serves as the thread’s exit status.  The process exits when the last running thread calls pthread_exit. 

Return Values

None

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026