Lines Matching refs:lock
89 static pthread_mutex_t lock; // protects operations on |config|. variable
96 pthread_mutex_init(&lock, NULL); in init()
134 pthread_mutex_destroy(&lock); in init()
150 pthread_mutex_destroy(&lock); in clean_up()
171 pthread_mutex_lock(&lock); in btif_config_has_section()
173 pthread_mutex_unlock(&lock); in btif_config_has_section()
183 pthread_mutex_lock(&lock); in btif_config_exist()
185 pthread_mutex_unlock(&lock); in btif_config_exist()
196 pthread_mutex_lock(&lock); in btif_config_get_int()
200 pthread_mutex_unlock(&lock); in btif_config_get_int()
210 pthread_mutex_lock(&lock); in btif_config_set_int()
212 pthread_mutex_unlock(&lock); in btif_config_set_int()
224 pthread_mutex_lock(&lock); in btif_config_get_str()
226 pthread_mutex_unlock(&lock); in btif_config_get_str()
243 pthread_mutex_lock(&lock); in btif_config_set_str()
245 pthread_mutex_unlock(&lock); in btif_config_set_str()
257 pthread_mutex_lock(&lock); in btif_config_get_bin()
259 pthread_mutex_unlock(&lock); in btif_config_get_bin()
283 pthread_mutex_lock(&lock); in btif_config_get_bin_length()
285 pthread_mutex_unlock(&lock); in btif_config_get_bin_length()
313 pthread_mutex_lock(&lock); in btif_config_set_bin()
315 pthread_mutex_unlock(&lock); in btif_config_set_bin()
348 pthread_mutex_lock(&lock); in btif_config_remove()
350 pthread_mutex_unlock(&lock); in btif_config_remove()
376 pthread_mutex_lock(&lock); in btif_config_clear()
381 pthread_mutex_unlock(&lock); in btif_config_clear()
386 pthread_mutex_unlock(&lock); in btif_config_clear()
398 pthread_mutex_lock(&lock); in btif_config_write()
403 pthread_mutex_unlock(&lock); in btif_config_write()
434 pthread_mutex_lock(&lock); in btif_config_remove_restricted()
444 pthread_mutex_unlock(&lock); in btif_config_remove_restricted()