Blender Git Commit Log

Git Commits -> Revision 01a3c6b

Revision 01a3c6b by Bastien Montagne (master)
September 25, 2017, 07:56 (GMT)
Tweak to fix for thread concurency in looptri generation.

Even if pointer assignment may be atomic, it does not prevent reordering
and other nifty compiler tricks, we need a memory barrier to ensure not
only that transferring pointer from wip array to final one is atomic,
but also that all previous writing to memory are ?flushed? to
(visible by) all CPUs...

Thanks @sergey for finding the potential (though quite unlikely) issue.

Commit Details:

Full Hash: 01a3c6b204bfbe149dc2cc2278dd58f206af7ae2
Parent Commit: cb6f07f
Lines Changed: +12, -3

3 Modified Paths:

/source/blender/blenkernel/intern/cdderivedmesh.c (+4, -1) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+4, -1) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+4, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021