40 {
try {
TrapError(pthread_key_delete(
theKey)); }
catch (...) { std::terminate(); } }
42 operator pthread_key_t* (void) {
return &
theKey; }
43 operator const pthread_key_t* (void)
const {
return &
theKey; }
46 {
return (T)pthread_getspecific(
theKey); }
PthreadKey< T > & Set(T val)
void TrapError(int result)
PthreadKey(void(*destructor)(T)=0)