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

  man pages->IRIX man pages -> pthread_setspecific (3p)              
Title
Content
Arch
Section
 

Contents


pthread_setspecific(3P)				       pthread_setspecific(3P)


NAME    [Toc]    [Back]

     pthread_setspecific, pthread_getspecific -	thread-specific	data
     management

C SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int pthread_setspecific(pthread_key_t key,	const void *value);
     void *pthread_getspecific(pthread_key_t key);

DESCRIPTION    [Toc]    [Back]

     The pthread_setspecific() function	associates a thread-specific value
     with key.	Different threads may bind different values to the same	key.

     The pthread_getspecific() function	returns	the calling thread's value
     that is bound to the specified key.

     The affect	of calling either of these functions using a value for key not
     obtained from a pthread_key_create() call or after	key has	been deleted
     with pthread_key_delete() is undefined.

DIAGNOSTICS    [Toc]    [Back]

     The pthread_getspecific() function	returns	the thread-specific value
     associated	with key.  If no value is associated with key, then NULL is
     returned.

     On	success, pthread_setspecific() returns zero; otherwise,	an error
     number is returned:

     [ENOMEM]	    Not	enough memory is available to associate	value with
		    key.

     [EINVAL]	    The	value specified	by key is invalid.

SEE ALSO    [Toc]    [Back]

      
      
     pthread_key_create(3P), pthread_key_delete(3P).


									PPPPaaaaggggeeee 1111
[ 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_getspecific OpenBSD get a thread-specific data value
pthread_setspecific OpenBSD set a thread-specific data value
pthread_getspecific FreeBSD get a thread-specific data value
pthread_getspecific Tru64 Obtains the thread-specific data associated with the specified key
pthread_key_delete FreeBSD delete a thread-specific data key
pthread_key_create IRIX thread-specific data key creation
pthread_key_delete Tru64 Deletes a thread-specific data key
pthread_key_create FreeBSD thread-specific data key creation
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service