Lines Matching defs:lock
40 // get a team reference, lock the team, or one accesses the structure from a
44 // `lock' to be held and must be done atomically, too
45 // (atomic_{set,and,or}()). Reading with `lock' being held doesn't need to
47 // 3) Access to all other fields (read or write) requires `lock' to be held.
48 // 4) Locking order is scheduler lock -> Team -> Thread -> team_debug_info::lock
49 // -> thread_debug_info::lock.
52 spinlock lock;
53 // Guards the remaining fields. Should always be the innermost lock
54 // to be acquired/released, save for thread_debug_info::lock.
57 // Set atomically. So reading atomically is OK, even when the lock is
79 // by 'lock'. After setting the a condition variable the team is
94 // to get a thread reference, lock the thread, or one accesses the structure
98 // `lock' to be held and must be done atomically, too
99 // (atomic_{set,and,or}()). Reading with `lock' being held doesn't need to
101 // 3) Access to all other fields (read or write) requires `lock' to be held.
102 // 4) Locking order is scheduler lock -> Team -> Thread -> team_debug_info::lock
103 // -> thread_debug_info::lock.
106 spinlock lock;
107 // Guards the remaining fields. Should always be the innermost lock
111 // Set atomically. So reading atomically is OK, even when the lock is
167 #define GRAB_TEAM_DEBUG_INFO_LOCK(info) acquire_spinlock(&(info).lock)
168 #define RELEASE_TEAM_DEBUG_INFO_LOCK(info) release_spinlock(&(info).lock)