Lines Matching refs:lock

131 static pthread_mutex_t lock;  // protects operations on |config|.  variable
138 pthread_mutex_init(&lock, NULL); in init()
139 pthread_mutex_lock(&lock); in init()
202 pthread_mutex_unlock(&lock); in init()
208 pthread_mutex_unlock(&lock); in init()
209 pthread_mutex_destroy(&lock); in init()
240 pthread_mutex_destroy(&lock); in clean_up()
261 pthread_mutex_lock(&lock); in btif_config_has_section()
263 pthread_mutex_unlock(&lock); in btif_config_has_section()
273 pthread_mutex_lock(&lock); in btif_config_exist()
275 pthread_mutex_unlock(&lock); in btif_config_exist()
286 pthread_mutex_lock(&lock); in btif_config_get_int()
290 pthread_mutex_unlock(&lock); in btif_config_get_int()
300 pthread_mutex_lock(&lock); in btif_config_set_int()
302 pthread_mutex_unlock(&lock); in btif_config_set_int()
314 pthread_mutex_lock(&lock); in btif_config_get_str()
316 pthread_mutex_unlock(&lock); in btif_config_get_str()
333 pthread_mutex_lock(&lock); in btif_config_set_str()
335 pthread_mutex_unlock(&lock); in btif_config_set_str()
347 pthread_mutex_lock(&lock); in btif_config_get_bin()
349 pthread_mutex_unlock(&lock); in btif_config_get_bin()
373 pthread_mutex_lock(&lock); in btif_config_get_bin_length()
375 pthread_mutex_unlock(&lock); in btif_config_get_bin_length()
401 pthread_mutex_lock(&lock); in btif_config_set_bin()
403 pthread_mutex_unlock(&lock); in btif_config_set_bin()
436 pthread_mutex_lock(&lock); in btif_config_remove()
438 pthread_mutex_unlock(&lock); in btif_config_remove()
464 pthread_mutex_lock(&lock); in btif_config_clear()
469 pthread_mutex_unlock(&lock); in btif_config_clear()
475 pthread_mutex_unlock(&lock); in btif_config_clear()
490 pthread_mutex_lock(&lock); in btif_config_write()
496 pthread_mutex_unlock(&lock); in btif_config_write()