Blender Git Loki
Git Commits -> Revision 7a57a4f
April 4, 2016, 17:28 (GMT) |
Use function caching in the same way for BVM as for LLVM. The previous way of acquiring functions from the cache was actually not threadsafe. To do this efficiently the cache locking, lookup and potential update is now done inside the API functions to prevent race conditions on the cache. |
Commit Details:
Full Hash: 7a57a4f871d99ba495ae1036d9b6fe870580d865
Parent Commit: 72fd685
Lines Changed: +34, -52
6 Modified Paths:
/source/blender/blenkernel/intern/depsgraph.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+4, -10) (Diff)
/source/blender/blenkernel/intern/effect.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/object_dupli.c (+3, -8) (Diff)
/source/blender/blenvm/BVM_api.h (+5, -9) (Diff)
/source/blender/blenvm/intern/bvm_api.cc (+19, -22) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+4, -10) (Diff)
/source/blender/blenkernel/intern/effect.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/object_dupli.c (+3, -8) (Diff)
/source/blender/blenvm/BVM_api.h (+5, -9) (Diff)
/source/blender/blenvm/intern/bvm_api.cc (+19, -22) (Diff)