Blender Git Commit Log

Git Commits -> Revision 31d907f

Revision 31d907f by Bastien Montagne (master)
January 16, 2016, 14:59 (GMT)
Cleanup: BLI_task - API changes.

Based on usages so far:
- Split callback worker func in two, 'basic' and 'extended' versions. The former goes back
to the simplest verion, while the later keeps the 'userdata_chunk', and gets the thread_id too.
- Add use_threading to simple BLI_task_parallel_range(), turns out we need this pretty much systematically,
and allows to get rid of most usages of BLI_task_parallel_range_ex().
- Now BLI_task_parallel_range() expects 'basic' version of callback, while BLI_task_parallel_range_ex()
expectes 'extended' version of the callback.

All in all, this should make common usage of BLI_task_parallel_range simpler (less verbose), and add
access to advanced callback to thread id, which is mandatory in some (future) cases.

Commit Details:

Full Hash: 31d907fa0ad1afa8c8a1829e16d3af394ab9e301
Parent Commit: 7248096
Lines Changed: +218, -132

11 Modified Paths:

/source/blender/blenkernel/intern/ocean.c (+2, -2) (Diff)
/source/blender/blenlib/BLI_task.h (+5, -4) (Diff)
/source/blender/blenlib/intern/BLI_kdopbvh.c (+8, -8) (Diff)
/source/blender/blenlib/intern/math_statistics.c (+3, -3) (Diff)
/source/blender/blenlib/intern/task.c (+78, -22) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+103, -78) (Diff)
/source/blender/editors/sculpt_paint/sculpt_undo.c (+4, -3) (Diff)
/source/blender/modifiers/intern/MOD_meshdeform.c (+2, -2) (Diff)
/source/blender/modifiers/intern/MOD_ocean.c (+8, -6) (Diff)
/source/blender/modifiers/intern/MOD_uvwarp.c (+2, -2) (Diff)
/source/blender/modifiers/intern/MOD_weightvgproximity.c (+3, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021