Blender Git Commit Log

Git Commits -> Revision 2679236

Revision 2679236 by Jacques Lucke (master)
July 17, 2020, 12:15 (GMT)
Cleanup: avoid static initialization order issues when accessing CPPTypes

Instead of depending on static initialization order of globals use
static variables within functions. Those are initialized on first use.
This is every so slighly less efficient, but avoids a full class of problems.

Commit Details:

Full Hash: 267923604754a50064c04a925a841a6714253d72
Parent Commit: 3ef5912
Lines Changed: +35, -94

1 Deleted Path:

/source/blender/functions/FN_cpp_types.hh (+0, -48)

12 Modified Paths:

/source/blender/blenkernel/intern/simulation.cc (+0, -1) (Diff)
/source/blender/functions/CMakeLists.txt (+0, -1) (Diff)
/source/blender/functions/FN_cpp_type.hh (+4, -7) (Diff)
/source/blender/functions/intern/cpp_types.cc (+1, -1) (Diff)
/source/blender/simulation/intern/simulation_update.cc (+1, -2) (Diff)
/tests/gtests/functions/FN_array_spans_test.cc (+3, -4) (Diff)
/tests/gtests/functions/FN_attributes_ref_test.cc (+0, -1) (Diff)
/tests/gtests/functions/FN_cpp_type_test.cc (+3, -2) (Diff)
/tests/gtests/functions/FN_generic_vector_array_test.cc (+7, -8) (Diff)
/tests/gtests/functions/FN_multi_function_network_test.cc (+3, -4) (Diff)
/tests/gtests/functions/FN_multi_function_test.cc (+5, -6) (Diff)
/tests/gtests/functions/FN_spans_test.cc (+8, -9) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021