Lines Matching refs:lock
36 * Contains RT distributed lock synchronization service definitions.
49 #include <kern/lock.h>
53 queue_chain_t held_link; /* ulocks held in the lock set */
56 decl_mutex_data(,lock) /* ulock lock */
58 struct lock_set *lock_set; /* the retaining lock set */
59 thread_t holder; /* thread that holds the lock */
73 queue_chain_t task_link; /* chain of lock sets owned by a task */
74 decl_mutex_data(,lock) /* lock set lock */
75 task_t owner; /* task that owns the lock set */
76 ipc_port_t port; /* lock set port */
80 int n_ulocks; /* number of ulocks in the lock set */
91 * Data structure internal lock macros
94 #define lock_set_lock_init(ls) mutex_init(&(ls)->lock, 0)
95 #define lock_set_lock(ls) mutex_lock(&(ls)->lock)
96 #define lock_set_unlock(ls) mutex_unlock(&(ls)->lock)
98 #define ulock_lock_init(ul) mutex_init(&(ul)->lock, 0)
99 #define ulock_lock(ul) mutex_lock(&(ul)->lock)
100 #define ulock_unlock(ul) mutex_unlock(&(ul)->lock)