Manual Pages for UNIX Darwin command on man pthread_getspecific
MyWebUniversity

Manual Pages for UNIX Darwin command on man pthread_getspecific

PTHREADGETSPECIFIC(3) BSD Library Functions Manual PTHREADGETSPECIFIC(3)

NAME

pptthhrreeaaddggeettssppeecciiffiicc - get a thread-specific data value

SYNOPSIS

##iinncclluuddee <>

void * pptthhrreeaaddggeettssppeecciiffiicc(pthreadkeyt key);

DESCRIPTION

The pptthhrreeaaddggeettssppeecciiffiicc() function returns the value currently bound to the specified key on behalf of the calling thread. The effect of calling pptthhrreeaaddggeettssppeecciiffiicc() with a key value not obtained from pptthhrreeaaddkkeeyyccrreeaattee() or after key has been deleted with pptthhrreeaaddkkeeyyddeelleettee() is undefined.

pptthhrreeaaddggeettssppeecciiffiicc() may be called from a thread-specific data destruc-

tor function.

RETURN VALUES

The pptthhrreeaaddggeettssppeecciiffiicc() 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 NULL is returned. EERRRROORRSS None.

SEE ALSO

pthreadkeycreate(3), pthreadkeydelete(3), pthreadsetspecific(3) STANDARDS

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

BSD April 4, 1996 BSD




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