*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> pthread_getspecific (3)              
Title
Content
Arch
Section
 

PTHREAD_GETSPECIFIC(3)

Contents


NAME    [Toc]    [Back]

     pthread_getspecific - get a thread-specific data value

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     void *
     pthread_getspecific(pthread_key_t key);

DESCRIPTION    [Toc]    [Back]

     The pthread_getspecific() function returns  the  value  currently bound to
     the specified key on behalf of the calling thread.

     The effect of calling pthread_getspecific() with a key value
not obtained
     from pthread_key_create() or after key has been deleted with
     pthread_key_delete() is undefined.

     pthread_getspecific()  may  be called from a thread-specific
data destructor
 function.

RETURN VALUES    [Toc]    [Back]

     The pthread_getspecific() function will return  the  threadspecific data
     value  associated with the given key.  If no thread-specific
data value is
     associated with key, then the value NULL is returned.

ERRORS    [Toc]    [Back]

     None.

SEE ALSO    [Toc]    [Back]

      
      
     pthread_key_create(3),  pthread_key_delete(3),  pthread_setspecific(3)

STANDARDS    [Toc]    [Back]

     pthread_getspecific()   conforms   to   ISO/IEC  9945-1:1996
(``POSIX'').

OpenBSD     3.6                           April      4,      1996
[ Back ]
 Similar pages
Name OS Title
pthread_setspecific Tru64 Sets the thread-specific data value associated with the specified key for the current thread
pthread_setspecific FreeBSD set a thread-specific data value
pthread_setspecific OpenBSD set a thread-specific data value
pthread_key_delete OpenBSD delete a thread-specific data key
pthread_key_create IRIX thread-specific data key creation
pthread_key_create FreeBSD thread-specific data key creation
pthread_key_delete FreeBSD delete a thread-specific data key
pthread_setspecific IRIX thread-specific data management
pthread_key_delete IRIX thread-specific data key deletion
pthread_key_delete Tru64 Deletes a thread-specific data key
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service