MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / unloadPlugins

Method unloadPlugins

ImagePlay/src/IPPluginManager.cpp:110–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void IPPluginManager::unloadPlugins()
111{
112 // unregister process
113 for(int i=0; i<_loadedPlugins.count(); i++)
114 {
115 QString plugin = _loadedPlugins.at(i);
116 _factory->unregisterProcess(plugin);
117 }
118 _loadedPlugins.clear();
119
120 // unload DLL
121 for(int i=0; i<_kernels.count(); i++)
122 {
123 pugg::Kernel* kernel = _kernels.at(i);
124 kernel->clear();
125 }
126 _kernels.clear();
127 _drivers.clear();
128
129 // delete old tmp directory
130 removeDir(_pluginTmpPath);
131}
132
133void IPPluginManager::on_pluginDirectoryChanged(const QString & path)
134{

Callers

nothing calls this directly

Calls 3

unregisterProcessMethod · 0.80
atMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected