EntropyEngine::Core::WeakControlBlock
EntropyEngine::Core::WeakControlBlock
Section titled “EntropyEngine::Core::WeakControlBlock”Control block for handling safe weak references to EntropyObjects. More…
#include <WeakControlBlock.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| void | retain() |
| void | release() |
| WeakControlBlock(EntropyObject * obj) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| std::atomic< uint32_t > | refCount |
| EntropyObject * | object |
| std::mutex | mutex |
Detailed Description
Section titled “Detailed Description”struct EntropyEngine::Core::WeakControlBlock;Control block for handling safe weak references to EntropyObjects.
This block allows WeakRef instances to safely check if the underlying object is still alive. The block persists as long as either the object is alive OR there are any WeakRefs pointing to it.
Public Functions Documentation
Section titled “Public Functions Documentation”function retain
Section titled “function retain”inline void retain()function release
Section titled “function release”inline void release()function WeakControlBlock
Section titled “function WeakControlBlock”inline explicit WeakControlBlock( EntropyObject * obj)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable refCount
Section titled “variable refCount”std::atomic< uint32_t > refCount {1};variable object
Section titled “variable object”EntropyObject * object = nullptr;variable mutex
Section titled “variable mutex”std::mutex mutex;Updated on 2026-01-26 at 17:14:35 -0500