![]() |
http://www.sim.no/ http://www.coin3d.org/ |
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. More...
#include <Inventor/threads/SbStorage.h>
Public Member Functions | |
SbStorage (unsigned int size) | |
SbStorage (unsigned int size, cc_storage_f *constr, cc_storage_f *destr) | |
~SbStorage (void) | |
void * | get (void) |
void | applyToAll (SbStorageApplyFunc *func, void *closure) |
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.
This provides a mechanism for sharing read/write static data.
One important implementation detail: if the Coin library was explicitly configured to be built without multi-platform thread abstractions, or neither pthreads nor native Win32 thread functions are available, it will be assumed that the client code will all run in the same thread. This means that the same memory block will be returned for any request without considering the current thread id.
|
inline |
Constructor. size specifies the number of bytes each thread should have in this thread-local memory management object.
|
inline |
The destructor.
|
inline |
This method returns the calling thread's thread-local memory block.
|
inline |
This method will call func for all thread local storage data. closure will be supplied as the second parameter to the callback.
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Fri Sep 9 2016 for Coin by Doxygen 1.8.5.