Lines Matching refs:mutex
37 static inline void init_slot_lock( pthread_mutex_t* mutex)
42 pthread_mutex_init(mutex, &attr);
45 static inline void lock_slot(pthread_mutex_t* mutex)
47 if(mutex->value)
48 pthread_mutex_lock(mutex);
49 else ALOGE("mutex: %p is not initialized", mutex);
52 static inline void unlock_slot(pthread_mutex_t* mutex)
54 if(mutex->value)
55 pthread_mutex_unlock(mutex);
56 else ALOGE("mutex: %p is not initialized", mutex);