[450] in Pthreads mailing list archive
Re: pthread_getspecific
daemon@ATHENA.MIT.EDU (Bob Knighten)
Fri Oct 4 14:40:55 1996
Date: Fri, 4 Oct 96 11:23:37 PDT
From: Bob Knighten <knighten@co.intel.com>
To: streepy@healthcare.com
Cc: pthreads@MIT.EDU
In-Reply-To: <32541ECB.41C2FD6C@healthcare.com>
Reply-To: knighten@co.intel.com (Bob Knighten)
Larry V. Streepy, Jr. writes:
> Can someone with access to the standard please tell me the final calling
> interface to the following functions:
>
> pthread_key_create
> pthread_key_delete
> pthread_setspecific
> pthread_getspecific
>
>
> I have looked on three different systems and found three different
> interfaces! Arghh!
Here are the synopses from Section 17 of ISO/IEC 9945-1:1996
==============================================================================
#include <pthread.h>
int pthread_key_create( pthread_key_t *key, void (*destructor) (void *)) ;
==============================================================================
#include <pthread.h>
int pthread_key_delete( pthread_key_t key) ;
==============================================================================
#include <pthread.h>
int pthread_setspecific(pthread_key_t key, const void *value) ;
void *pthread_getspecific(pthread_key_t key) ;
==============================================================================
--
Robert L. Knighten | knighten@co.intel.com
Server Architecture Lab |
Intel Corporation |
5200 N.E. Elam Young Parkway, CO3-202 | (503) 677-4315
Hillsboro, OR 97124-6497 | (503) 677-6700 [FAX]