diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-11-23 23:14:43 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-11-23 23:14:43 +0300 |
commit | efb86b712d540e132fb68058b7a7fba0fc8be247 (patch) | |
tree | f872d46c5860f1fc9dc079089f3081dcc9b591a5 /intern/atomic/atomic_ops.h | |
parent | b84e6dfee4a82b4142651710cbe842f8d021a861 (diff) |
Add a new parallel looper for MemPool items to BLI_task.
It merely uses the new thread-safe iterators system of mempool, quite
straight forward.
Note that to avoid possible confusion with two void pointers as
parameters of the callback, a dummy opaque struct pointer is used
instead for the second parameter (pointer generated by iteration over
mempool), callback functions must explicitely convert it to expected
real type.
Also added a basic gtest for this new feature.
Diffstat (limited to 'intern/atomic/atomic_ops.h')
0 files changed, 0 insertions, 0 deletions