|
Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
|
Reference counter. More...
#include <zephyr/sys/ref.h>
Data Fields | |
| atomic_t | value |
| Counter value. | |
Reference counter.
Saturating reference counter. This is the minimal primitive used to implement Reference counting and is not meant to be used on its own by most code. Unlike a plain atomic_t, it is pinned on overflow and underflow is caught by an assertion, turning a counting bug into a leak rather than a use-after-free.
| atomic_t sys_refcount::value |
Counter value.