[Bf-blender-cvs] [5a7429c] master: BLI_task: Add back lost 'push_from_thread' change to BLI_task_parallel_range() & co.

Bastien Montagne noreply at git.blender.org
Mon May 16 17:00:24 CEST 2016


Commit: 5a7429c36302b872b8de2eaec88984a9b98cc613
Author: Bastien Montagne
Date:   Mon May 16 16:46:54 2016 +0200
Branches: master
https://developer.blender.org/rB5a7429c36302b872b8de2eaec88984a9b98cc613

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