![]() |
http://www.sim.no http://www.coin3d.org |
This class manages thread-local memory. When different threads access the memory an SbTypedStorage object manages, they will receive different memory blocks back. More...
#include <Inventor/threads/SbTypedStorage.h>
Public Member Functions | |
SbTypedStorage (unsigned int size) | |
SbTypedStorage (unsigned int size, void(*constr)(void *), void(*destr)(void *)) | |
~SbTypedStorage (void) | |
Type | get (void) |
This class manages thread-local memory. When different threads access the memory an SbTypedStorage object manages, they will receive different memory blocks back.
This provides a mechanism for sharing read/write static data.
SbTypedStorage< Type >::SbTypedStorage | ( | unsigned int | size | ) | [inline] |
Constructor. size specifies the number of bytes each thread should have in this thread-local memory management object.
SbTypedStorage< Type >::SbTypedStorage | ( | unsigned int | size, | |
void(*)(void *) | constr, | |||
void(*)(void *) | destr | |||
) | [inline] |
Constructor. size specifies the number of bytes each thread should have in this thread-local memory management object. Constructor and a destructor functions can be specified that will be called when the actual memory blocks are allocated and freed.
SbTypedStorage< Type >::~SbTypedStorage | ( | void | ) | [inline] |
The destructor.
Type SbTypedStorage< Type >::get | ( | void | ) | [inline] |
This method returns the calling thread's thread-local memory block.
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Feb 23 16:33:41 2009 for Coin by Doxygen. 1.5.8