Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pthread_self(3thr)

Name

pthread_self − Obtains the identifier of the current thread. 

Syntax

#include <pthread.h>

pthread_t pthread_self();

Arguments

None

Description

This routine allows a thread to obtain its own identifier.  Use this identifier in calls to pthread_setprio and pthread_setscheduler. 

This value becomes meaningless when the thread object is deleted − that is, when the thread has terminated its execution and pthread_detach has been called. 

Return Values

Returns the identifier of the calling thread to pthread_t. 

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