diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-05-16 17:46:54 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-05-16 18:00:15 +0300 |
commit | 5a7429c36302b872b8de2eaec88984a9b98cc613 (patch) | |
tree | cea7cebd55593438c2d7695bd5caa20ad5e019ba | |
parent | 19955bd15209a92b1604e4c4894e8cce2546d9a5 (diff) |
BLI_task: Add back lost 'push_from_thread' change to BLI_task_parallel_range() & co.
-rw-r--r-- | source/blender/blenlib/intern/task.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/task.c b/source/blender/blenlib/intern/task.c index f1bffd0e669..a34d9e97fd5 100644 --- a/source/blender/blenlib/intern/task.c +++ b/source/blender/blenlib/intern/task.c @@ -911,10 +911,10 @@ static void task_parallel_range_ex( atomic_fetch_and_add_uint32((uint32_t *)(&state.iter), 0); for (i = 0; i < num_tasks; i++) { - BLI_task_pool_push(task_pool, - parallel_range_func, - NULL, false, - TASK_PRIORITY_HIGH); + BLI_task_pool_push_from_thread(task_pool, + parallel_range_func, + NULL, false, + TASK_PRIORITY_HIGH, 0); } BLI_task_pool_work_and_wait(task_pool); |