diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-25 04:04:20 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-25 04:04:20 +0300 |
commit | 4d46fac65d9946382c4be5b3842660e77468f00b (patch) | |
tree | c2910a4ca0b2d345007bf853d6484a1b9e53e4e1 /source/blender/blenlib/tests/performance/BLI_task_performance_test.cc | |
parent | c594cfbe50497fdc365b3f327b643de507cda02f (diff) |
Cleanup: use count or num instead of nbr
Follow conventions from T85728.
Diffstat (limited to 'source/blender/blenlib/tests/performance/BLI_task_performance_test.cc')
-rw-r--r-- | source/blender/blenlib/tests/performance/BLI_task_performance_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/tests/performance/BLI_task_performance_test.cc b/source/blender/blenlib/tests/performance/BLI_task_performance_test.cc index 33a196569e9..98fafe55d69 100644 --- a/source/blender/blenlib/tests/performance/BLI_task_performance_test.cc +++ b/source/blender/blenlib/tests/performance/BLI_task_performance_test.cc @@ -135,17 +135,17 @@ static void task_listbase_test_do(ListBase *list, NUM_RUN_AVERAGED); } -static void task_listbase_test(const char *id, const int nbr, const bool use_threads) +static void task_listbase_test(const char *id, const int count, const bool use_threads) { printf("\n========== STARTING %s ==========\n", id); ListBase list = {nullptr, nullptr}; - LinkData *items_buffer = (LinkData *)MEM_calloc_arrayN(nbr, sizeof(*items_buffer), __func__); + LinkData *items_buffer = (LinkData *)MEM_calloc_arrayN(count, sizeof(*items_buffer), __func__); BLI_threadapi_init(); int num_items = 0; - for (int i = 0; i < nbr; i++) { + for (int i = 0; i < count; i++) { BLI_addtail(&list, &items_buffer[i]); num_items++; } |