Searched refs:mutex_t (Results 1 – 6 of 6) sorted by relevance
22 } mutex_t; typedef39 void mutex_init(mutex_t *lock);46 void mutex_lock(mutex_t *lock);53 void mutex_unlock(mutex_t *lock);62 int mutex_trylock(mutex_t *lock);
93 mutex_t open_mutex; // open()/close()操作的互斥锁
19 - mutex_t65 } mutex_t;72 **`void mutex_init(mutex_t *lock)`**78 **`void mutex_lock(mutex_t *lock)`**84 **`void mutex_unlock(mutex_t *lock)`**90 **`void mutex_trylock(mutex_t *lock)`**96 **`void mutex_is_locked(mutex_t *lock)`**
10 void mutex_init(mutex_t *lock) in mutex_init()24 static void __mutex_acquire(mutex_t *lock) in __mutex_acquire()32 void mutex_lock(mutex_t *lock) in mutex_lock()71 void mutex_unlock(mutex_t *lock) in mutex_unlock()104 int mutex_trylock(mutex_t *lock) in mutex_trylock()
34 mutex_t lock; // 操作互斥锁
7 static mutex_t mtx;