CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
ObjInst_WeakRef Struct Reference

#include <objclass.h>

Public Member Functions

 atomic (uintptr) _ref
 Reference count for the weak reference itself.
 

Data Fields

RWLock _lock
 Protects access during object destruction.
 

Detailed Description

Weak reference structure

Allows observing an object without owning it. When the object is destroyed, the weak reference's _inst pointer is set to NULL, allowing safe detection of destruction. Multiple weak references can point to the same object.

Definition at line 113 of file objclass.h.


The documentation for this struct was generated from the following file: