Blender Git Commit Log
Git Commits -> Revision b88597c
Revision b88597c by Sergey Sharybin (master) May 18, 2015, 11:40 (GMT) |
Make switching to threaded malloc safe to be called from threads For a long time this function was only intended to be used from the main thread, but since out implementation of parallel range (which is currently only used by mesh deform modifier) we might want to switch to threaded alloc from object update thread. Now we're using spinlock around the check, which makes the code safe to be used from all over the place. We might consider using a bit of atomics operations magic there, but it's not so much important for now, this code is not used in the performance critical code path. |
Commit Details:
Full Hash: b88597c2186689e8eaaf3cb3f5b2601b449781fe
Parent Commit: 1738879
Lines Changed: +4, -0
1 Modified Path:
/source/blender/blenlib/intern/threads.c (+4, -0) (Diff)