Searched refs:SCENE_QUEUE_SIZE (Results 1 – 1 of 1) sorted by relevance
42 #define SCENE_QUEUE_SIZE 4 macro51 struct lp_scene *scenes[SCENE_QUEUE_SIZE];71 STATIC_ASSERT(SCENE_QUEUE_SIZE > 0); in lp_scene_queue_create()72 STATIC_ASSERT((SCENE_QUEUE_SIZE & (SCENE_QUEUE_SIZE - 1)) == 0); in lp_scene_queue_create()113 struct lp_scene *scene = queue->scenes[queue->head++ % SCENE_QUEUE_SIZE]; in lp_scene_dequeue()129 while (queue->tail - queue->head >= SCENE_QUEUE_SIZE) in lp_scene_enqueue()132 queue->scenes[queue->tail++ % SCENE_QUEUE_SIZE] = scene; in lp_scene_enqueue()