Lines Matching refs:recursion
154 CHECK_EQ(s->recursion, 0); in MutexLock()
158 CHECK_GT(s->recursion, 0); in MutexLock()
163 if (s->recursion == 0) { in MutexLock()
170 s->recursion += rec; in MutexLock()
172 if (common_flags()->detect_deadlocks && (s->recursion - rec) == 0) { in MutexLock()
198 if (kCppMode && (s->recursion == 0 || s->owner_tid != thr->tid)) { in MutexUnlock()
204 rec = all ? s->recursion : 1; in MutexUnlock()
205 s->recursion -= rec; in MutexUnlock()
206 if (s->recursion == 0) { in MutexUnlock()
215 if (common_flags()->detect_deadlocks && s->recursion == 0 && in MutexUnlock()
250 if (common_flags()->detect_deadlocks && s->recursion == 0) { in MutexReadLock()
283 if (common_flags()->detect_deadlocks && s->recursion == 0) { in MutexReadUnlock()
317 CHECK_GT(s->recursion, 0); in MutexReadOrWriteUnlock()
318 s->recursion--; in MutexReadOrWriteUnlock()
319 if (s->recursion == 0) { in MutexReadOrWriteUnlock()
331 if (common_flags()->detect_deadlocks && s->recursion == 0) { in MutexReadOrWriteUnlock()
350 s->recursion = 0; in MutexRepair()