summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-24 14:24:56 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-24 14:24:56 (GMT)
commite00b56dd571d3cef11e3080f916715ede334b99f (patch)
treed68af48e19ab7aa944402c4bacfd20d388c552aa
parentcc0e0d566040a46b612f019893e24281e40484a8 (diff)
downloadCMake-e00b56dd571d3cef11e3080f916715ede334b99f.zip
CMake-e00b56dd571d3cef11e3080f916715ede334b99f.tar.gz
CMake-e00b56dd571d3cef11e3080f916715ede334b99f.tar.bz2
Add accessor for Flushing cache
-rw-r--r--Source/cmDynamicLoader.cxx5
-rw-r--r--Source/cmDynamicLoader.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx
index c997e38..7e21a7f 100644
--- a/Source/cmDynamicLoader.cxx
+++ b/Source/cmDynamicLoader.cxx
@@ -356,3 +356,8 @@ const char* cmDynamicLoader::LastError()
return dlerror();
}
#endif
+
+void cmDynamicLoader::FlushCache()
+{
+ cmDynamicLoaderCache::GetInstance()->FlushCache();
+}
diff --git a/Source/cmDynamicLoader.h b/Source/cmDynamicLoader.h
index 3938528..dfc3be0 100644
--- a/Source/cmDynamicLoader.h
+++ b/Source/cmDynamicLoader.h
@@ -69,6 +69,10 @@ public:
// Description:
// Return the last error produced from a calls made on this class.
static const char* LastError();
+
+ // Description:
+ // Flush the cache of dynamic loader.
+ static void FlushCache();
protected:
cmDynamicLoader() {};