summaryrefslogtreecommitdiffstats
path: root/c++/src
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-10-08 19:44:41 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-10-08 19:44:41 (GMT)
commit74ab402e3eb08b53dbf2ad7d3a27b51cfae87f5b (patch)
tree9d3f0a526647180945d894634c8d437841a8392b /c++/src
parent2bc3773209031533d5906c255888a82f3a5aab77 (diff)
downloadhdf5-74ab402e3eb08b53dbf2ad7d3a27b51cfae87f5b.zip
hdf5-74ab402e3eb08b53dbf2ad7d3a27b51cfae87f5b.tar.gz
hdf5-74ab402e3eb08b53dbf2ad7d3a27b51cfae87f5b.tar.bz2
[svn-r28008] Description:
Put back an unused name (need_cleanup) to avoid breaking compatibility in this release. Will do it when there are others as well. Platforms tested: Linux/32 2.6 (jam) - very minor
Diffstat (limited to 'c++/src')
-rw-r--r--c++/src/H5Library.cpp6
-rw-r--r--c++/src/H5Library.h5
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();