BLI_task: make foreach loop index hleper lockfree, take II.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 16 May 2016 13:57:19 +0000 (15:57 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 16 May 2016 13:57:19 +0000 (15:57 +0200)
commit575d7a9666e12ef6608af92d0bf2a9c590afc816
tree51b21ae410f66754a13d6d9ad9822d2926b7aef7
parent75a96f832518e33bc032d137ab6f6334676f024c
BLI_task: make foreach loop index hleper lockfree, take II.

New code is actually much, much better than first version, using 'fetch_and_add' atomic op
here allows us to get rid of the loop etc.

The broken CAS issue remains on windows, to be investigated...
source/blender/blenlib/intern/task.c