void(* release)(struct m0_ref *ref)
static void m0_atomic64_inc(struct m0_atomic64 *a)
M0_INTERNAL void m0_ref_put(struct m0_ref *ref)
void m0_ref_init(struct m0_ref *ref, int init_num, void(*release)(struct m0_ref *ref))
M0_INTERNAL void m0_ref_get(struct m0_ref *ref)
struct m0_atomic64 ref_cnt
static bool m0_atomic64_dec_and_test(struct m0_atomic64 *a)
static int64_t m0_atomic64_get(const struct m0_atomic64 *a)
M0_INTERNAL int64_t m0_ref_read(const struct m0_ref *ref)
static void m0_atomic64_set(struct m0_atomic64 *a, int64_t num)