[Bf-blender-cvs] [ac078ab] compositor-2016: BLI_task: Add back lost 'push_from_thread' change to BLI_task_parallel_range() & co.
Bastien Montagne
noreply at git.blender.org
Wed Jun 8 21:47:15 CEST 2016
Commit: ac078abda72cbc389817701d38ee9e3c0ecf7575
Author: Bastien Montagne
Date: Mon May 16 16:46:54 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rBac078abda72cbc389817701d38ee9e3c0ecf7575
BLI_task: Add back lost 'push_from_thread' change to BLI_task_parallel_range() & co.
===================================================================
M source/blender/blenlib/intern/task.c
===================================================================
diff --git a/source/blender/blenlib/intern/task.c b/source/blender/blenlib/intern/task.c
index f1bffd0..a34d9e9 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);
More information about the Bf-blender-cvs
mailing list