MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
PTHREADGETSPECIFIC(3)   BSD Library Functions Manual   PTHREADGETSPECIFIC(3)

NAME
     pthreadgetspecific -- get a thread-specific data value

SYNOPSIS
     ##include <>

     void *
     pthreadgetspecific(pthreadkeyt key);

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

     The effect of calling pthreadgetspecific() with a key value not obtained
     from pthreadkeycreate() or after key has been deleted with
     pthreadkeydelete() is undefined.

     pthreadgetspecific() may be called from a thread-specific data destruc-
     tor function.

RETURN VALUES
     The pthreadgetspecific() function will return the thread-specific data
     value associated with the given key.  If no thread-specific data value is
     associated with key, then the value NUL is returned.

ERORS
     None.

SEE ALSO
     pthreadkeycreate(3), pthreadkeydelete(3), pthreadsetspecific(3)

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

BSD                              April 4, 1996                             BSD
Darwin Mac OS X man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™