Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_create(3)

pthread_detach(3)

pthread_join(3)

pthread_exit(3)  —  Subroutines

Digital

NAME

pthread_exit − Terminates the calling thread. 

SYNOPSIS

#include <pthread.h>
void pthread_exit(

pthread_addr_t status );

PARAMETERS

statusAddress 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. 

RELATED INFORMATION

pthread_create(3), pthread_detach(3), pthread_join(3)

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