Lines Matching refs:ref
447 new_lwp->ref = 1; in lwp_create()
713 int ref; in lwp_ref_inc() local
714 ref = rt_atomic_add(&lwp->ref, 1); in lwp_ref_inc()
715 LOG_D("%s(%p(%s)): before %d", __func__, lwp, lwp->cmd, ref); in lwp_ref_inc()
717 return ref; in lwp_ref_inc()
722 int ref; in lwp_ref_dec() local
724 ref = rt_atomic_add(&lwp->ref, -1); in lwp_ref_dec()
725 LOG_D("%s(lwp=%p,lwp->cmd=%s): before ref=%d", __func__, lwp, lwp->cmd, ref); in lwp_ref_dec()
727 if (ref == 1) in lwp_ref_dec()
747 RT_ASSERT(ref > 1); in lwp_ref_dec()
750 return ref; in lwp_ref_dec()