[Bf-blender-cvs] [2ae69739366] master: Cleanup: Easier to read constant name

Sergey Sharybin noreply at git.blender.org
Wed May 31 14:53:04 CEST 2017


Commit: 2ae697393664dd94cc74ce2dfd7c691e8483cba9
Author: Sergey Sharybin
Date:   Wed May 31 14:52:45 2017 +0200
Branches: master
https://developer.blender.org/rB2ae697393664dd94cc74ce2dfd7c691e8483cba9

Cleanup: Easier to read constant name

===================================================================

M	source/blender/blenlib/intern/task.c

===================================================================

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;




More information about the Bf-blender-cvs mailing list