1#ifndef COIN_SBSTORAGE_H
2#define COIN_SBSTORAGE_H
27#include <Inventor/C/threads/storage.h>
29typedef 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);
The SbStorage class manages thread-local memory.
Definition SbStorage.h:31
void applyToAll(SbStorageApplyFunc *func, void *closure)
Definition SbStorage.h:39
SbStorage(unsigned int size)
Definition SbStorage.h:33
~SbStorage(void)
Definition SbStorage.h:36
void * get(void)
Definition SbStorage.h:38
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.