diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-12-30 22:39:56 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-12-30 22:39:56 +0300 |
commit | 511e3c5d9d503b47cd5fb6fe48abeafde9fbff2d (patch) | |
tree | 5777460ffb9b9178d9d46c9db74c5c6d8c60b5e0 /source/blender/blenlib/BLI_task.h | |
parent | d9bb4a200c6e41baaa399993e27944f40c14bca3 (diff) |
BLI_task: change BLI_task_parallel_range_ex() to just take a bool whether to use threading or not, instead of threshold.
From recent experience, turns out we often do want to use something else than basic
range of parallelized forloop as control parameter over threads usage, so now BLI func
only takes a boolean, and caller defines best check for its own case.
Diffstat (limited to 'source/blender/blenlib/BLI_task.h')
-rw-r--r-- | source/blender/blenlib/BLI_task.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_task.h b/source/blender/blenlib/BLI_task.h index 45a6e0b02c1..7b9a3c59430 100644 --- a/source/blender/blenlib/BLI_task.h +++ b/source/blender/blenlib/BLI_task.h @@ -119,7 +119,7 @@ void BLI_task_parallel_range_ex( void *userdata_chunk, const size_t userdata_chunk_size, TaskParallelRangeFunc func, - const int range_threshold, + const bool use_threading, const bool use_dynamic_scheduling); void BLI_task_parallel_range( int start, int stop, |