Lines Matching refs:lock
69 pthread_mutex_t lock; member
95 static struct flounder_sound_trigger_device g_stdev = { .lock = PTHREAD_MUTEX_INITIALIZER };
263 pthread_mutex_lock(&stdev->lock); in callback_thread_loop()
286 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop()
290 pthread_mutex_lock(&stdev->lock); in callback_thread_loop()
299 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop()
331 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop()
344 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop()
373 pthread_mutex_lock(&stdev->lock); in stdev_load_sound_model()
396 pthread_mutex_unlock(&stdev->lock); in stdev_load_sound_model()
408 pthread_mutex_lock(&stdev->lock); in stdev_unload_sound_model()
424 pthread_mutex_unlock(&stdev->lock); in stdev_unload_sound_model()
428 pthread_mutex_lock(&stdev->lock); in stdev_unload_sound_model()
434 pthread_mutex_unlock(&stdev->lock); in stdev_unload_sound_model()
449 pthread_mutex_lock(&stdev->lock); in stdev_start_recognition()
477 pthread_mutex_unlock(&stdev->lock); in stdev_start_recognition()
489 pthread_mutex_lock(&stdev->lock); in stdev_stop_recognition()
503 pthread_mutex_unlock(&stdev->lock); in stdev_stop_recognition()
507 pthread_mutex_lock(&stdev->lock); in stdev_stop_recognition()
512 pthread_mutex_unlock(&stdev->lock); in stdev_stop_recognition()
522 pthread_mutex_lock(&stdev->lock); in sound_trigger_open_for_streaming()
539 pthread_mutex_unlock(&stdev->lock); in sound_trigger_open_for_streaming()
555 pthread_mutex_lock(&stdev->lock); in sound_trigger_read_samples()
582 pthread_mutex_unlock(&stdev->lock); in sound_trigger_read_samples()
600 pthread_mutex_lock(&stdev->lock); in stdev_close()
614 pthread_mutex_unlock(&stdev->lock); in stdev_close()
628 pthread_mutex_lock(&stdev->lock); in stdev_open()
665 pthread_mutex_unlock(&stdev->lock); in stdev_open()