Blender Git Commit Log

Git Commits -> Revision 1775c39

Revision 1775c39 by Germano Cavalcante (master)
July 29, 2021, 14:37 (GMT)
Fix 'BLI_task_parallel_mempool' keeping 'user_chunk' unchanged

When `BLI_task_parallel_mempool` does not use threading, the
`userdata_chunk` is allocated locally simulating a TLS.

However `func_reduce` is not called so the original chunk is ignored.

`task_parallel_iterator_no_threads` is another function that doesn't call
`func_reduce`. It also ignores `userdata_chunk_local` in the main iterator.

The solution in these cases is not to create a `userdata_chunk_local`.

This fixes T90131

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

Commit Details:

Full Hash: 1775c39986594244630e7f42931d1208fe020d02
Parent Commit: 0f1c84f
Lines Changed: +12, -19

1 Modified Path:

/source/blender/blenlib/intern/task_iterator.c (+12, -19) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021