Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

socontexthandler(3) [debian man page]

SoContextHandler(3)						       Coin						       SoContextHandler(3)

NAME
SoContextHandler - The SoContextHandler class is for now to be treated as an internal class. SYNOPSIS
#include <Inventor/misc/SoContextHandler.h> Public Types typedef void ContextDestructionCB (uint32_t contextid, void *userdata) Static Public Member Functions static void destructingContext (uint32_t contextid) static void addContextDestructionCallback (ContextDestructionCB *func, void *closure) static void removeContextDestructionCallback (ContextDestructionCB *func, void *closure) Detailed Description The SoContextHandler class is for now to be treated as an internal class. Since: Coin 2.0 Member Function Documentation void SoContextHandler::destructingContext (uint32_tcontextid) [static] This method must be called by client code which destructs a context, to guarantee that there are no memory leaks upon context destruction. This will take care of correctly freeing context-bound resources, like OpenGL texture objects and display lists. Before calling this function, the context must be made current. Note that if you are using one of the standard GUI-binding libraries from Kongsberg Oil & Gas Technologies, this is taken care of automatically for contexts for canvases set up by SoQt, SoWin, etc. void SoContextHandler::addContextDestructionCallback (ContextDestructionCB *func, void *closure) [static] Add a callback which will be called every time a GL context is destructed. The callback should delete all GL resources tied to that context. All nodes/classes that allocate GL resources should set up a callback like this. Add the callback in the constructor of the node/class, and remove it in the destructor. See also: removeContextDestructionCallback() void SoContextHandler::removeContextDestructionCallback (ContextDestructionCB *func, void *closure) [static] Remove a context destruction callback. See also: addContextDestructionCallback() Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SoContextHandler(3)

Check Out this Related 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)
Man Page