Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-05-31 15:52:45 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-05-31 15:52:45 +0300
commit2ae697393664dd94cc74ce2dfd7c691e8483cba9 (patch)
tree1aab9ddffbca5288af6a5ec4b60af74bba8c79d7 /source/blender/blenlib
parenta51dccc6f36773b21e4445015f9057e390c3a05e (diff)
Cleanup: Easier to read constant name
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/task.c6
1 files changed, 3 insertions, 3 deletions
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;