MCPcopy Create free account
hub / github.com/3rdparty/libprocess / reinitialize

Function reinitialize

src/process.cpp:961–976  ·  view source on GitHub ↗

Tests can declare this function and use it to re-configure libprocess programmatically. Without explicitly declaring this function, it is not visible. This is the preferred behavior as we do not want applications changing these settings while they are running (this would be undefined behavior). NOTE: If the test is changing SSL-related configuration, the SSL library must be reinitialized first. S

Source from the content-addressed store, hash-verified

959// NOTE: If the test is changing SSL-related configuration, the SSL library
960// must be reinitialized first. See `reinitialize` in `openssl.cpp`.
961void reinitialize(
962 const Option<string>& delegate,
963 const Option<string>& readwriteAuthenticationRealm,
964 const Option<string>& readonlyAuthenticationRealm)
965{
966 process::finalize();
967
968 // Reset the initialization synchronization primitives.
969 initialize_started.store(false);
970 initialize_complete.store(false);
971
972 process::initialize(
973 delegate,
974 readwriteAuthenticationRealm,
975 readonlyAuthenticationRealm);
976}
977
978
979bool initialize(

Callers

nothing calls this directly

Calls 2

finalizeFunction · 0.85
initializeFunction · 0.70

Tested by

no test coverage detected