Lines Matching refs:recursion
153 CHECK_EQ(s->recursion, 0); in MutexLock()
157 CHECK_GT(s->recursion, 0); in MutexLock()
162 if (s->recursion == 0) { in MutexLock()
169 s->recursion += rec; in MutexLock()
171 if (common_flags()->detect_deadlocks && (s->recursion - rec) == 0) { in MutexLock()
197 if (kCppMode && (s->recursion == 0 || s->owner_tid != thr->tid)) { in MutexUnlock()
203 rec = all ? s->recursion : 1; in MutexUnlock()
204 s->recursion -= rec; in MutexUnlock()
205 if (s->recursion == 0) { in MutexUnlock()
214 if (common_flags()->detect_deadlocks && s->recursion == 0 && in MutexUnlock()
249 if (common_flags()->detect_deadlocks && s->recursion == 0) { in MutexReadLock()
282 if (common_flags()->detect_deadlocks && s->recursion == 0) { in MutexReadUnlock()
316 CHECK_GT(s->recursion, 0); in MutexReadOrWriteUnlock()
317 s->recursion--; in MutexReadOrWriteUnlock()
318 if (s->recursion == 0) { in MutexReadOrWriteUnlock()
330 if (common_flags()->detect_deadlocks && s->recursion == 0) { in MutexReadOrWriteUnlock()
349 s->recursion = 0; in MutexRepair()