Lines Matching refs:lock
46 pthread_mutex_t *lock = mm_malloc(sizeof(pthread_mutex_t)); in evthread_posix_lock_alloc() local
47 if (!lock) in evthread_posix_lock_alloc()
51 if (pthread_mutex_init(lock, attr)) { in evthread_posix_lock_alloc()
52 mm_free(lock); in evthread_posix_lock_alloc()
55 return lock; in evthread_posix_lock_alloc()
61 pthread_mutex_t *lock = _lock; in evthread_posix_lock_free() local
62 pthread_mutex_destroy(lock); in evthread_posix_lock_free()
63 mm_free(lock); in evthread_posix_lock_free()
69 pthread_mutex_t *lock = _lock; in evthread_posix_lock() local
71 return pthread_mutex_trylock(lock); in evthread_posix_lock()
73 return pthread_mutex_lock(lock); in evthread_posix_lock()
79 pthread_mutex_t *lock = _lock; in evthread_posix_unlock() local
80 return pthread_mutex_unlock(lock); in evthread_posix_unlock()
139 pthread_mutex_t *lock = _lock; in evthread_posix_cond_wait() local
148 r = pthread_cond_timedwait(cond, lock, &ts); in evthread_posix_cond_wait()
156 r = pthread_cond_wait(cond, lock); in evthread_posix_cond_wait()