From e00b56dd571d3cef11e3080f916715ede334b99f Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 24 Sep 2002 10:24:56 -0400 Subject: Add accessor for Flushing cache --- Source/cmDynamicLoader.cxx | 5 +++++ Source/cmDynamicLoader.h | 4 ++++ 2 files changed, 9 insertions(+) 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() {}; -- cgit v0.12