Define t8_refcount_unref

Define Documentation

t8_refcount_unref(rc)

Decrease the reference count by one.

The count must be greater zero on input. If the reference count reaches zero, which is indicated by the return value, the counter may NOT be used further with t8_refcount_ref or

See also

t8_refcount_unref. It IS legal to query it with t8_refcount_is_active and t8_refcount_is_last and to repurpose it later by calling t8_refcount_init. It is not necessary to duplicate this functionality as a function.

Parameters:
  • rc[in] Reference counter

Returns:

true if and only if the refcount is 0 after the operation.