Searched refs:lock (Results 1 – 2 of 2) sorted by relevance
37 adb_mutex_t lock; member52 adb_mutex_lock(&usb->lock); in usb_open_thread()54 adb_cond_wait(&usb->notify, &usb->lock); in usb_open_thread()55 adb_mutex_unlock(&usb->lock); in usb_open_thread()121 adb_mutex_init(&h->lock, 0); in usb_init()144 adb_mutex_lock(&h->lock); in usb_kick()150 adb_mutex_unlock(&h->lock); in usb_kick()
53 static __inline__ void adb_mutex_lock( adb_mutex_t* lock ) in adb_mutex_lock() argument55 EnterCriticalSection( lock ); in adb_mutex_lock()58 static __inline__ void adb_mutex_unlock( adb_mutex_t* lock ) in adb_mutex_unlock() argument60 LeaveCriticalSection( lock ); in adb_mutex_unlock()