diff options
-rw-r--r-- | c++/src/H5Library.cpp | 6 | ||||
-rw-r--r-- | c++/src/H5Library.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/c++/src/H5Library.cpp b/c++/src/H5Library.cpp index e7e9fb6..552f276 100644 --- a/c++/src/H5Library.cpp +++ b/c++/src/H5Library.cpp @@ -38,6 +38,12 @@ namespace H5 { #endif #ifndef DOXYGEN_SHOULD_SKIP_THIS +// This static variable will be set to true when dontAtExit is called +// - unused, will be removed in future releases. +bool H5Library::need_cleanup = false; + +// IdComponent default constructor instantiates this object to register cleanup +// functions before any global constant is created. H5Library* H5Library::instance = 0; #endif // DOXYGEN_SHOULD_SKIP_THIS diff --git a/c++/src/H5Library.h b/c++/src/H5Library.h index 68ab039..5e94cb5 100644 --- a/c++/src/H5Library.h +++ b/c++/src/H5Library.h @@ -29,6 +29,11 @@ namespace H5 { */ class H5_DLLCPP H5Library { public: +#ifndef DOXYGEN_SHOULD_SKIP_THIS + static bool need_cleanup; // indicates if H5close should be called + // - unused, will be removed in future releases. +#endif // DOXYGEN_SHOULD_SKIP_THIS + // Initializes the HDF5 library. static void open(); |