TSD.cpp File Reference

#include <SysThread.h>
#include <CmnErrors.h>
#include <pthread.h>
#include <assert.h>
#include <errno.h>

Namespaces

namespace  palmos

Defines

#define MAX_NAMED_PTHREAD_KEYS   64

Functions

void palmos::cleanupNamedTSDKeys (void)
status_t SysTSDAllocate (SysTSDSlotID *oTSDSlot, SysTSDDestructorFunc *iDestructor, uint32_t iName)
status_t SysTSDFree (SysTSDSlotID tsdslot)
void * SysTSDGet (SysTSDSlotID tsdslot)
void SysTSDSet (SysTSDSlotID tsdslot, void *iValue)

Variables

struct {
   SysTSDDestructorFunc *   destructor
   pthread_key_t   key
   uint32_t   name
named_pthread_keys [MAX_NAMED_PTHREAD_KEYS]


Define Documentation

#define MAX_NAMED_PTHREAD_KEYS   64
 


Function Documentation

status_t SysTSDAllocate SysTSDSlotID oTSDSlot,
SysTSDDestructorFunc iDestructor,
uint32_t  iName
 

status_t SysTSDFree SysTSDSlotID  tsdslot  ) 
 

void* SysTSDGet SysTSDSlotID  tsdslot  ) 
 

void SysTSDSet SysTSDSlotID  tsdslot,
void *  iValue
 


Variable Documentation

SysTSDDestructorFunc* destructor
 

pthread_key_t key
 

uint32_t name
 

struct { ... } named_pthread_keys[MAX_NAMED_PTHREAD_KEYS]