#include <Inventor/threads/SbStorage.h>
This class manages thread-local memory. When different threads access the memory an SbStorage object manages, they will receive different memory blocks back.
This provides a mechanism for sharing read/write static data.
Public Member Functions | |
SbStorage (unsigned int size) | |
SbStorage (unsigned int size, void(*constr)(void *), void(*destr)(void *)) | |
~SbStorage (void) | |
void * | get (void) |
void | applyToAll (SbStorageApplyFunc *func, void *closure) |
|
Constructor. size specifies the number of bytes each thread should have in this thread-local memory management object. |
|
Constructor. size specifies the number of bytes each thread should have in this thread-local memory management object. A constructor and a destructor functions can be given that will be called when the actual memory blocks are allocated and freed. |
|
The destructor. |
|
This method returns the calling thread's thread-local memory block. |
|
This method will call func for all thread local storage data. closure will be supplied as the second parameter to the callback. |