From 2ae697393664dd94cc74ce2dfd7c691e8483cba9 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 31 May 2017 14:52:45 +0200 Subject: Cleanup: Easier to read constant name --- source/blender/blenlib/intern/task.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/intern/task.c b/source/blender/blenlib/intern/task.c index eb4e6e91aee..3766a72319b 100644 --- a/source/blender/blenlib/intern/task.c +++ b/source/blender/blenlib/intern/task.c @@ -52,7 +52,7 @@ * * This allows thread to fetch next task without locking the whole queue. */ -#define LOCALQUEUE_SIZE 1 +#define LOCAL_QUEUE_SIZE 1 #ifndef NDEBUG # define ASSERT_THREAD_ID(scheduler, thread_id) \ @@ -131,7 +131,7 @@ typedef struct TaskMemPoolStats { typedef struct TaskThreadLocalStorage { TaskMemPool task_mempool; int num_local_queue; - Task *local_queue[LOCALQUEUE_SIZE]; + Task *local_queue[LOCAL_QUEUE_SIZE]; } TaskThreadLocalStorage; struct TaskPool { @@ -739,7 +739,7 @@ static void task_pool_push( ASSERT_THREAD_ID(pool->scheduler, thread_id); TaskThreadLocalStorage *tls = get_task_tls(pool, thread_id); - if (tls->num_local_queue < LOCALQUEUE_SIZE) { + if (tls->num_local_queue < LOCAL_QUEUE_SIZE) { tls->local_queue[tls->num_local_queue] = task; tls->num_local_queue++; return; -- cgit v1.2.3