Blender Git Loki

Git Commits -> Revision d923fb7

Revision d923fb7 by Jeroen Bakker (master)
April 17, 2020, 14:06 (GMT)
Task: Separate Finalize into Reduce And Free

In preparation of TBB we need to split the finalize function into reduce
and free. Reduce is used to combine results and free for freeing any
allocated memory.

The reduce function is called to join user data chunk into another, to reduce the
result to the original userdata_chunk memory. These functions should have no side
effects so that they can be run on any thread.
The free functions should free data created during execution (TaskParallelRangeFunc).

Original patch by Brecht van Lommel
{rB61f49db843cf5095203112226ae386f301be1e1a}.

Reviewed By: Brecht van Lommel, Bastien Montagne

Differential Revision: https://developer.blender.org/D7394

Commit Details:

Full Hash: d923fb784f4f429c066ceb807c669a4308c1d9b4
Parent Commit: 74fcb53
Lines Changed: +168, -146

10 Modified Paths:

/source/blender/blenkernel/intern/colortools.c (+31, -38) (Diff)
/source/blender/blenkernel/intern/dynamicpaint.c (+18, -15) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+8, -7) (Diff)
/source/blender/blenkernel/intern/subdiv_ccg.c (+9, -9) (Diff)
/source/blender/blenkernel/intern/subdiv_foreach.c (+3, -3) (Diff)
/source/blender/blenlib/BLI_task.h (+12, -4) (Diff)
/source/blender/blenlib/intern/task_iterator.c (+47, -34) (Diff)
/source/blender/editors/physics/particle_edit.c (+15, -9) (Diff)
/source/blender/editors/space_sequencer/sequencer_scopes.c (+8, -12) (Diff)
/tests/gtests/blenlib/BLI_task_test.cc (+17, -15) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021