Home
last modified time | relevance | path

Searched refs:grp_children (Results 1 – 3 of 3) sorted by relevance

/xnu-12377.61.12/tests/
H A Dos_refcnt.c287 T_ASSERT_EQ_UINT(g1.grp_children, 1, "group attached");
288 T_ASSERT_EQ_UINT(global_ref_group.grp_children, 1, "global group attached");
304 T_ASSERT_EQ_UINT(g1.grp_children, 0, "group detatched");
/xnu-12377.61.12/libkern/os/
H A Drefcnt_internal.h20 os_ref_atomic_t grp_children; /* number of refcount objects in group */ member
126 .grp_children = (0u), \
H A Drefcnt.c227 if (atomic_fetch_add_explicit(&grp->grp_children, 1, memory_order_relaxed) == 0) { in ref_attach_to_group()
274 atomic_fetch_sub_explicit(&grp->grp_children, 1, memory_order_relaxed); in ref_drop_group()