MCPcopy Create free account
hub / github.com/commontk/CTK / unregisterModule

Method unregisterModule

Libs/CommandLineModules/Core/ctkCmdLineModuleManager.cpp:334–351  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

332
333//----------------------------------------------------------------------------
334void ctkCmdLineModuleManager::unregisterModule(const ctkCmdLineModuleReference& ref)
335{
336 if (!ref) return;
337
338 {
339 QMutexLocker lock(&d->Mutex);
340 if (!d->LocationToRef.contains(ref.location()))
341 {
342 return;
343 }
344 d->LocationToRef.remove(ref.location());
345 if (d->ModuleCache)
346 {
347 d->ModuleCache->removeCacheEntry(ref.location());
348 }
349 }
350 emit moduleUnregistered(ref);
351}
352
353
354//----------------------------------------------------------------------------

Callers 3

foreachFunction · 0.80
checkXMLPressedMethod · 0.80
operator()Method · 0.80

Calls 4

removeCacheEntryMethod · 0.80
containsMethod · 0.45
locationMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected