34 #include <sc_refcount.h>
62 #define t8_refcount_ref(rc) sc_refcount_ref(rc)
74 #define t8_refcount_unref(rc) sc_refcount_unref(rc)
77 #define t8_refcount_is_active(rc) sc_refcount_is_active(rc)
80 #define t8_refcount_is_last(rc) sc_refcount_is_last(rc)
This is the administrative header file for t8code.
void t8_refcount_destroy(t8_refcount_t *rc)
Destroy a reference counter that we allocated with t8_refcount_new.
Definition: t8_refcount.c:43
t8_refcount_t * t8_refcount_new(void)
Create a new reference counter with count initialized to 1.
Definition: t8_refcount.c:32
sc_refcount_t t8_refcount_t
We can reuse the reference counter type from libsc.
Definition: t8_refcount.h:39
void t8_refcount_init(t8_refcount_t *rc)
Initialize a reference counter to 1.
Definition: t8_refcount.c:26