Lines Matching full:locked
55 // The table defines a static mutex type hierarchy (what mutex types can be locked
67 // Adjacency matrix of what mutexes can be locked under what mutexes.
148 LockDesc locked[kMutexTypeMax]; member
154 // Find the last locked mutex type. in Lock()
159 if (locked[i].seq == 0) in Lock()
161 CHECK_NE(locked[i].seq, max_seq); in Lock()
162 if (max_seq < locked[i].seq) { in Lock()
163 max_seq = locked[i].seq; in Lock()
169 CHECK_EQ(locked[type].seq, max_seq); in Lock()
170 CHECK(locked[type].pc); in Lock()
171 locked[type].recursion++; in Lock()
177 PrintMutexPC(locked[max_idx].pc); in Lock()
180 locked[type].seq = ++sequence; in Lock()
181 locked[type].pc = pc; in Lock()
182 locked[type].recursion = 1; in Lock()
189 CHECK(locked[type].seq); in Unlock()
190 CHECK_GT(locked[type].recursion, 0); in Unlock()
191 if (--locked[type].recursion) in Unlock()
193 locked[type].seq = 0; in Unlock()
194 locked[type].pc = 0; in Unlock()
198 for (int i = 0; i < mutex_type_count; i++) CHECK_EQ(locked[i].recursion, 0); in CheckNoLocks()