Task scheduler: Use const qualifiers in parallel range
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Jan 2018 09:47:01 +0000 (10:47 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Jan 2018 15:09:33 +0000 (16:09 +0100)
source/blender/blenlib/BLI_task.h
source/blender/blenlib/intern/task.c

index 0f78d2f4361d0eec8f871f8351c0842855b3d134..52f32c2999f1c77c8d85818e19a4ed0913769f0c 100644 (file)
@@ -184,7 +184,7 @@ BLI_INLINE void BLI_parallel_range_settings_defaults(
         ParallelRangeSettings* settings);
 
 void BLI_task_parallel_range(
-        int start, int stop,
+        const int start, const int stop,
         void *userdata,
         TaskParallelRangeFunc func,
         const ParallelRangeSettings *settings);
index 8c83fcabf792a8dd373c707fd45ae9f42740d8e6..2c756aa6d6509314bc7fa69413c8aa1295722587 100644 (file)
@@ -1060,7 +1060,7 @@ static void palallel_range_single_thread(int start, int stop,
  *
  * See public API doc of ParallelRangeSettings for description of all settings.
  */
-void BLI_task_parallel_range(int start, int stop,
+void BLI_task_parallel_range(const int start, const int stop,
                              void *userdata,
                              TaskParallelRangeFunc func,
                              const ParallelRangeSettings *settings)