Function t8_refcount_new(void)

Function Documentation

t8_refcount_t *t8_refcount_new(void)

Create a new reference counter with count initialized to 1. Equivalent to calling t8_refcount_init on a newly allocated refcount_t. It is mandatory to free this with t8_refcount_destroy.

Returns:

An allocated reference counter whose count has been set to one.