Closed timspainNERSC closed 1 month ago
Fixes #614 (partially)
Finalize
std::atexit()
main()
Finalizer.cpp
Finalizer
Module::finalize<>
registerUnique()
There is a test for the new Finalizer class.
Module & Finalizer: the module finalizer
Fixes #614 (partially)
Change Description
Finalize
class, which mimicsstd::atexit()
, but can be called before the end ofmain()
.Finalizer.cpp
source file to the CMake system.Finalizer
class.Module::finalize<>
function template.registerUnique()
each module instantiation is only called once when the finalization occurs.Test Description
There is a test for the new
Finalizer
class.