Răsfoiți Sursa

Add accessor for Flushing cache

Andy Cedilnik 23 ani în urmă
părinte
comite
e00b56dd57
2 a modificat fișierele cu 9 adăugiri și 0 ștergeri
  1. 5 0
      Source/cmDynamicLoader.cxx
  2. 4 0
      Source/cmDynamicLoader.h

+ 5 - 0
Source/cmDynamicLoader.cxx

@@ -356,3 +356,8 @@ const char* cmDynamicLoader::LastError()
   return dlerror(); 
 }
 #endif
+
+void cmDynamicLoader::FlushCache()
+{
+  cmDynamicLoaderCache::GetInstance()->FlushCache();
+}

+ 4 - 0
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() {};