sig_atomic.h

include/sig/base/sig_atomic.h

sig_refcount_h

typedef struct {
    atomic_uint_least16_t count;
} sig_refcount_h;

sig_refcount_init

void sig_refcount_init(sig_refcount_h * h, uint16_t initial)
ParameterType
hsig_refcount_h *
initialuint16_t

sig_refcount_get

uint16_t sig_refcount_get(const sig_refcount_h * h)
ParameterType
hconst sig_refcount_h *

sig_refcount_add

uint16_t sig_refcount_add(sig_refcount_h * h)
ParameterType
hsig_refcount_h *

sig_refcount_del

uint16_t sig_refcount_del(sig_refcount_h * h)
ParameterType
hsig_refcount_h *