SBTYPEDSTORAGE(3coin3)

πŸ“¦
version 3.1.3 Β· 2 versions
, in fedora 43

πŸŽ€ NAME πŸŽ€

SbTypedStorage< Type > β€” the class that manages generic thread-local memory, and it does it beautifully. ✨

Little context bestie: this page lives in the Library Functions Manual, so you know it's the real deal. πŸ’…

πŸ¦‹ 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 >

Okay so picture this: SbTypedStorage is your class for managing generic thread-local memory. Generic, thread-local, memory β€” say it with me. πŸ‘‘

Here's the vibe: this class manages thread-local memory. When different threads come and touch the memory that an SbTypedStorage object is managing, they each get handed back different memory blocks. No cap. Everyone gets their own. πŸ™ˆ

And that right there? That's the mechanism for sharing read/write static data. Fr fr. πŸ’―


πŸ’… Constructor & Destructor Documentation πŸ’…

πŸ“ template<class Type> SbTypedStorage< Type >::SbTypedStorage (unsigned int size) [inline]

Constructor energy. ✨ The size param specifies the number of bytes each thread should have in this thread-local memory management object. That's the whole assignment. Slay.

🧚 template<class Type> SbTypedStorage< Type >::SbTypedStorage (unsigned int size, void(* constr )(void *), void(* destr )(void *)) [inline]

Constructor, but make it fancy. πŸŽ€ Again, size specifies the number of bytes each thread should have in this thread-local memory management object. On top of that, you can specify a constructor function and a destructor function β€” constr and destr β€” and those get called when the actual memory blocks are allocated and freed. Obsessed with the lifecycle management ngl. πŸ”₯

πŸ₯€ template<class Type> SbTypedStorage< Type >::~SbTypedStorage (void ) [inline]

It's the destructor. That's it, that's the whole thing. She cleans up. 🫢


🌈 Member Function Documentation 🌈

⭐ template<class Type> Type SbTypedStorage< Type >::get (void ) [inline]

This method returns the calling thread's thread-local memory block. Yours. Only yours. Main character memory, literally. πŸ‘‘


🌟 Author 🌟

Generated automatically by Doxygen for Coin from the source code. (Not a human, just a little robot doing its best. πŸ€–πŸ’–)


And that's the page, bestie!! πŸ¦‹πŸ’œ This was Coin, Version 3.1.3, page SbTypedStorage< Type >(3) β€” thanks for reading all the way to the bottom, you ate that. πŸŽ€βœ¨

πŸ“¦ where this page comes from