Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sbstorage(3) [debian man page]

SbStorage(3)							       Coin							      SbStorage(3)

NAME
SbStorage - 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. SYNOPSIS
#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) Detailed Description 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. Constructor &; Destructor Documentation SbStorage::SbStorage (unsigned intsize) [inline] Constructor. size specifies the number of bytes each thread should have in this thread-local memory management object. SbStorage::~SbStorage (void) [inline] The destructor. Member Function Documentation void * SbStorage::get (void) [inline] This method returns the calling thread's thread-local memory block. void SbStorage::applyToAll (SbStorageApplyFunc *func, void *closure) [inline] This method will call func for all thread local storage data. closure will be supplied as the second parameter to the callback. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SbStorage(3)

Check Out this Related Man Page

Portable Threads Abstraction Classes(3)                                Coin                                Portable Threads Abstraction Classes(3)

NAME
Portable Threads Abstraction Classes - Classes class SbBarrier The SbBarrier class implements the 'barrier' multi-thread synchronization technique. A barrier is a synchronization mechanism that is used for blocking threads as they enter the barrier until a given number of threads are blocked, at which point all the threads are released again. " class SbCondVar A class for synchronizing access to global variables. Condition variables are used to protect global variables in an environment where multiple threads are running concurrently. " class SbFifo A class for managing a pointer first-in, first-out queue. class SbMutex A basic class for managing a mutex. This class provides a portable framework around the mutex interface of the underlying native thread-handling toolkit. " class SbThreadAutoLock Simple convenience class for locking access to a function. This class provides a simple convenience mechanism for automatically locking access to a function that is not re-entrant. " class SbRWMutex class SbStorage 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. " class SbTypedStorage< Type > The SbTypedStorage class manages generic thread-local memory. This class manages thread-local memory. When different threads access the memory an SbTypedStorage object manages, they will receive different memory blocks back. " class SbThread A class for managing threads. This class provides a portable framework around the tasks of instantiating, starting, stopping and joining threads. " Detailed Description Coin implements a set of abstractions over the native threads data types that can be portably used across all the platforms Coin has been ported to. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 Portable Threads Abstraction Classes(3)
Man Page