• Home
  • Raw
  • Download

Lines Matching refs:how

470       : how(how_arg),  in SynchWaitParams()
478 const Mutex::MuHow how; // How this thread needs to wait. member
708 static unsigned TsanFlags(Mutex::MuHow how) { in TsanFlags() argument
709 return how == kShared ? __tsan_mutex_read_lock : 0; in TsanFlags()
757 return x->waitp->how == y->waitp->how && in MuSameCondition()
942 } else if (waitp->how == kExclusive && in Enqueue()
1035 if (w->waitp->how == kExclusive) { // wake at most 1 writer in DequeueAllWakeable()
1568 MuHow how = in AwaitCommon() local
1570 ABSL_TSAN_MUTEX_PRE_UNLOCK(this, TsanFlags(how)); in AwaitCommon()
1572 how, &cond, t, nullptr /*no cvmu*/, Synch_GetPerThreadAnnotated(this), in AwaitCommon()
1580 ABSL_TSAN_MUTEX_POST_UNLOCK(this, TsanFlags(how)); in AwaitCommon()
1581 ABSL_TSAN_MUTEX_PRE_LOCK(this, TsanFlags(how)); in AwaitCommon()
1584 EvalConditionAnnotated(&cond, this, true, false, how == kShared); in AwaitCommon()
1585 ABSL_TSAN_MUTEX_POST_LOCK(this, TsanFlags(how), 0); in AwaitCommon()
1754 void Mutex::LockSlow(MuHow how, const Condition *cond, int flags) { in LockSlow() argument
1756 this->LockSlowWithDeadline(how, cond, KernelTimeout::Never(), flags), in LockSlow()
1836 bool Mutex::LockSlowWithDeadline(MuHow how, const Condition *cond, in LockSlowWithDeadline() argument
1840 if ((v & how->fast_need_zero) == 0 && // try fast acquire in LockSlowWithDeadline()
1842 v, (how->fast_or | (v & zap_desig_waker[flags & kMuHasBlocked])) + in LockSlowWithDeadline()
1843 how->fast_add, in LockSlowWithDeadline()
1846 EvalConditionAnnotated(cond, this, true, false, how == kShared)) { in LockSlowWithDeadline()
1852 how, cond, t, nullptr /*no cvmu*/, Synch_GetPerThreadAnnotated(this), in LockSlowWithDeadline()
1865 EvalConditionAnnotated(cond, this, true, false, how == kShared); in LockSlowWithDeadline()
1906 waitp->how == kExclusive? SYNCH_EV_LOCK: SYNCH_EV_READERLOCK); in LockSlowLoop()
1914 if ((v & waitp->how->slow_need_zero) == 0) { in LockSlowLoop()
1916 v, (waitp->how->fast_or | in LockSlowLoop()
1918 waitp->how->fast_add, in LockSlowLoop()
1922 waitp->how == kShared)) { in LockSlowLoop()
1938 if (waitp->how == kExclusive && (v & kMuReader) != 0) { in LockSlowLoop()
1949 } else if ((v & waitp->how->slow_inc_need_zero & in LockSlowLoop()
1966 waitp->how == kShared)) { in LockSlowLoop()
1983 if (waitp->how == kExclusive && (v & kMuReader) != 0) { in LockSlowLoop()
2010 waitp->how == kExclusive? SYNCH_EV_LOCK_RETURNING : in LockSlowLoop()
2141 if (h->next->waitp->how == kExclusive && in UnlockSlow()
2155 } else if (w != nullptr && (w->waitp->how == kExclusive || h == old_h)) { in UnlockSlow()
2233 if (w_walk->waitp->how == kExclusive) { in UnlockSlow()
2237 } else if (w_walk->waitp->how == kShared) { // wake if a reader in UnlockSlow()
2327 void Mutex::Trans(MuHow how) { in Trans() argument
2328 this->LockSlow(how, nullptr, kMuHasBlocked | kMuIsCond); in Trans()
2352 kMuWriter | (w->waitp->how == kShared ? 0 : kMuReader); in Fer()