Blender Git Loki
Git Commits -> Revision 1975ee5
Revision 1975ee5 by Damien Plisson (master) December 17, 2009, 17:05 (GMT) |
OSX vs OpenMP : implement workaround to fix crashes when using mop from a background thread Fix# 20043 & 20392 The issue is that OSX lib does not implement TLS (Thread Local Storage), so libgomp uses pthread functions to read/write thread specific vars. But this implementation is currently (gcc 4.2) buggy : the write function is called only at lib start (in main thread), and the var is undefined for background thread. The workaround is to perform this gomp_tls_key var write at beginning of background threads that use openMP. (Currently: render & fluidsim) |
Commit Details:
Full Hash: 1975ee5eecc17514b441fb9ac921063c38fcabc4
SVN Revision: 25443
Parent Commit: 4271a40
Lines Changed: +53, -5
7 Modified Paths:
/intern/elbeem/CMakeLists.txt (+2, -2) (Diff)
/intern/elbeem/SConscript (+1, -2) (Diff)
/source/blender/editors/CMakeLists.txt (+4, -0) (Diff)
/source/blender/editors/physics/physics_fluid.c (+18, -0) (Diff)
/source/blender/editors/physics/SConscript (+8, -1) (Diff)
/source/blender/editors/screen/SConscript (+4, -0) (Diff)
/source/blender/editors/screen/screen_ops.c (+16, -0) (Diff)
/intern/elbeem/SConscript (+1, -2) (Diff)
/source/blender/editors/CMakeLists.txt (+4, -0) (Diff)
/source/blender/editors/physics/physics_fluid.c (+18, -0) (Diff)
/source/blender/editors/physics/SConscript (+8, -1) (Diff)
/source/blender/editors/screen/SConscript (+4, -0) (Diff)
/source/blender/editors/screen/screen_ops.c (+16, -0) (Diff)