SBTYPEDSTORAGE(3coin2)
π SbTypedStorage< Type > π
okay bestie, welcome to the Library Functions Manual page for SbTypedStorage< Type > and honestly? she's a baddie. let's get into it π«Ά
β¨ NAME β¨
SbTypedStorage< Type > β the SbTypedStorage class manages generic thread-local memory.
like. that's the whole vibe. thread-local memory, managed, generically. iconic.
πΈ SYNOPSIS πΈ
#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)
π¦ Detailed Description π¦
template<class Type>
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.
This provides a mechanism for sharing read/write static data.
no cap, that's the entire pitch: every thread gets its own lil block of memory from the same object, so you can share read/write static data without everybody stepping on each other's toes π
π Constructor & Destructor Documentation π
β template<class Type> 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.
like, <pink>size` = how much room each thread gets, in bytes. that's it, that's the tea π
β template<class Type> SbTypedStorage< Type >::SbTypedStorage (unsigned int size, void(* constr )(void *), void(* destr )(void *)) [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.
so you get <pink>sizebytes per thread **plus** aconstrfunction and adestr` function β and those get called when the actual memory blocks are allocated and freed. setup + cleanup, bestie. we love a full lifecycle π§
β template<class Type> SbTypedStorage< Type >::~SbTypedStorage (void ) [inline]
The destructor.
yeah. she's the destructor. she does destructor things. π
π Member Function Documentation π
π template<class Type> Type SbTypedStorage< Type >::get (void ) [inline]
This method returns the calling thread's thread-local memory block.
the calling thread's. not someone else's. yours. main character energy, fr fr π
π«Ά Author π«Ά
Generated automatically by Doxygen for Coin from the source code.
(so yeah, not a human author β Doxygen did that. she's automated and she ATE π )
lowkey a warning-ish note for you bestie: this whole page is Doxygen-generated documentation for the Coin library, so every word above comes straight from the source code. don't be out here assuming extra behaviour, okay? π
and that's the whole page!! thanks for coming to my ted talk πΈ this was Coin, Version 2.5.0 β SbTypedStorage< Type >(3), mwah πβ¨
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms