Lines Matching refs:state_lock
93 static pthread_mutex_t state_lock; variable
217 pthread_mutex_lock(&state_lock); in is_inited()
219 pthread_mutex_unlock(&state_lock); in is_inited()
365 pthread_mutex_init(&state_lock, NULL); in btsock_l2cap_init()
366 pthread_mutex_lock(&state_lock); in btsock_l2cap_init()
370 pthread_mutex_unlock(&state_lock); in btsock_l2cap_init()
377 pthread_mutex_lock(&state_lock); in btsock_l2cap_cleanup()
381 pthread_mutex_unlock(&state_lock); in btsock_l2cap_cleanup()
382 pthread_mutex_destroy(&state_lock); in btsock_l2cap_cleanup()
417 pthread_mutex_lock(&state_lock); in on_srv_l2cap_listen_started()
439 pthread_mutex_unlock(&state_lock); in on_srv_l2cap_listen_started()
446 pthread_mutex_lock(&state_lock); in on_cl_l2cap_init()
455 pthread_mutex_unlock(&state_lock); in on_cl_l2cap_init()
585 pthread_mutex_lock(&state_lock); in on_l2cap_connect()
604 pthread_mutex_unlock(&state_lock); in on_l2cap_connect()
611 pthread_mutex_lock(&state_lock); in on_l2cap_close()
624 pthread_mutex_unlock(&state_lock); in on_l2cap_close()
631 pthread_mutex_lock(&state_lock); in on_l2cap_outgoing_congest()
642 pthread_mutex_unlock(&state_lock); in on_l2cap_outgoing_congest()
655 pthread_mutex_lock(&state_lock); in on_l2cap_write_done()
665 pthread_mutex_unlock(&state_lock); in on_l2cap_write_done()
679 pthread_mutex_lock(&state_lock); in on_l2cap_write_fixed_done()
688 pthread_mutex_unlock(&state_lock); in on_l2cap_write_fixed_done()
700 pthread_mutex_lock(&state_lock); in on_l2cap_data_ind()
742 pthread_mutex_unlock(&state_lock); in on_l2cap_data_ind()
828 pthread_mutex_lock(&state_lock); in on_l2cap_psm_assigned()
836 pthread_mutex_unlock(&state_lock); in on_l2cap_psm_assigned()
916 pthread_mutex_lock(&state_lock); in btsock_l2cap_listen_or_connect()
920 pthread_mutex_unlock(&state_lock); in btsock_l2cap_listen_or_connect()
977 pthread_mutex_unlock(&state_lock); in btsock_l2cap_listen_or_connect()
1029 pthread_mutex_lock(&state_lock); in btsock_l2cap_signaled()
1106 pthread_mutex_unlock(&state_lock); in btsock_l2cap_signaled()