Searched refs:g_lock (Results 1 – 3 of 3) sorted by relevance
34 static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER; variable69 pthread_mutex_lock(&g_lock); in set_light_battery()75 pthread_mutex_unlock(&g_lock); in set_light_battery()83 pthread_mutex_lock(&g_lock); in set_light_notifications()89 pthread_mutex_unlock(&g_lock); in set_light_notifications()99 pthread_mutex_lock(&g_lock); in set_light_backlight()101 pthread_mutex_unlock(&g_lock); in set_light_backlight()138 pthread_mutex_init(&g_lock, NULL); in open_lights()
38 static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER; variable56 pthread_mutex_init(&g_lock, NULL); in init_globals()115 pthread_mutex_lock(&g_lock); in set_light_backlight()117 pthread_mutex_unlock(&g_lock); in set_light_backlight()178 pthread_mutex_lock(&g_lock); in set_light_notifications()180 pthread_mutex_unlock(&g_lock); in set_light_notifications()188 pthread_mutex_lock(&g_lock); in set_light_attention()190 pthread_mutex_unlock(&g_lock); in set_light_attention()
44 static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER; variable91 pthread_mutex_init(&g_lock, NULL); in init_globals()290 pthread_mutex_lock(&g_lock); in set_light_battery()293 pthread_mutex_unlock(&g_lock); in set_light_battery()306 pthread_mutex_lock(&g_lock); in set_light_notifications()309 pthread_mutex_unlock(&g_lock); in set_light_notifications()