Move static singletons to namespace level
The singleton instances of ConfigurationManager and ConnectionManager were stored as static variables in the static GetInstance methods. This causes weird errors on Windows where the singleton instance is not initialized in time and remains empty. This could be due to undefined behavior? Moving them to the namespace level fixes the unit test errors.
Showing
- include/linkahead/configuration.h 3 additions, 4 deletionsinclude/linkahead/configuration.h
- include/linkahead/connection.h 4 additions, 4 deletionsinclude/linkahead/connection.h
- src/linkahead/configuration.cpp 5 additions, 0 deletionssrc/linkahead/configuration.cpp
- src/linkahead/connection.cpp 7 additions, 0 deletionssrc/linkahead/connection.cpp