1 #ifndef COIN_SBSTORAGE_H 
    2 #define COIN_SBSTORAGE_H 
   27 #include <Inventor/C/threads/storage.h> 
   29 typedef void SbStorageApplyFunc(
void * tls, 
void * closure);
 
   33   SbStorage(
unsigned int size) { this->storage = cc_storage_construct(size); }
 
   34   SbStorage(
unsigned int size, cc_storage_f * constr, cc_storage_f * destr)
 
   35     { this->storage = cc_storage_construct_etc(size, constr, destr); }
 
   38   void * 
get(void) { 
return cc_storage_get(this->storage); }
 
   39   void applyToAll(SbStorageApplyFunc * func, 
void * closure) {
 
   40     cc_storage_apply_to_all(this->storage, 
 
   41                             reinterpret_cast<cc_storage_apply_func *>(func), closure);
 
   48 #endif // !COIN_SBSTORAGE_H 
~SbStorage(void)
Definition: SbStorage.h:36
The SbStorage class manages thread-local memory.This class manages thread-local memory. When different threads access the memory an SbStorage object manages, they will receive different memory blocks back. 
Definition: SbStorage.h:31
SbStorage(unsigned int size)
Definition: SbStorage.h:33
void applyToAll(SbStorageApplyFunc *func, void *closure)
Definition: SbStorage.h:39