This is essentially the solution we used since start of the Lumiera project. This solution is not entirely correct in theory, because the assignment to the instance pointer can be visible prior to releasing the Mutex -- so another thread might see a partially initialised object |
||
|---|---|---|
| .. | ||
| clang-static-init-1.cpp | ||
| clang-static-init-2.cpp | ||
| clang-static-init.hpp | ||
| crash_gdb_jessie-2015-08.sh | ||
| DIR_INFO | ||
| SConscript | ||
| try.cpp | ||