Lines Matching defs:lock
38 * This file contains the passive lock, which synchronizes passive threads.
39 * The passive lock allows multiple readers to access a resource
64 * are sharing the lock with a single thread holding the lock exclusively.
66 * Passive lock works exclusively between threads and cannot be used in
69 * The passive lock functions operate a cl_plock_t structure which should
96 pthread_rwlock_t lock;
101 * lock
105 * Records the current state of the lock, such as initialized,
118 * passive lock.
141 * passive lock function except cl_plock_init.
153 * of a passive lock.
161 pthread_rwlock_destroy(&p_lock->lock);
175 * passive lock.
178 * cl_plock_init has been called. The passive lock must not be held
190 * The cl_plock_init function initializes a passive lock.
199 status = (cl_status_t) pthread_rwlock_init(&p_lock->lock, NULL);
212 * CL_SUCCESS if the passive lock was initialized successfully.
230 * The cl_plock_acquire function acquires a passive lock for
241 status = (cl_status_t) pthread_rwlock_rdlock(&p_lock->lock);
263 * to a passive lock.
274 status = (cl_status_t) pthread_rwlock_wrlock(&p_lock->lock);
295 * The cl_plock_release function releases a passive lock from
306 status = (cl_status_t) pthread_rwlock_unlock(&p_lock->lock);