Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_keycreate(3)

pthread_setspecific(3)

pthread_getspecific(3)  —  Subroutines

NAME

pthread_getspecific − Obtains the per-thread context associated with the specified key. 

SYNOPSIS

#include <pthread.h>
int pthread_getspecific(

pthread_key_t key ,
pthread_addr_t ∗value );

PARAMETERS

keyContext key value that identifies the context value obtained. This key value must be obtained from pthread_keycreate, or it must be a key value predefined by the implementation (if predefined key values are provided). 

valueAddress of the current per-thread context value associated with the specified key. 

DESCRIPTION

This routine obtains the per-thread context associated with the specified key for the current thread. 

RETURN VALUES

If an error condition occurs, this routine returns −1 and sets errno to the corresponding error value. Possible return values are as follows:

Return Error Description
 0 Successful completion.
−1 [EINVAL] The key value is invalid.

RELATED INFORMATION

pthread_keycreate(3), pthread_setspecific(3)

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