MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / clearPluginMemoryChunks

Method clearPluginMemoryChunks

Engine/EffectInstance.cpp:203–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void
204EffectInstance::clearPluginMemoryChunks()
205{
206 // This will remove the mem from the pluginMemoryChunks list
207 QMutexLocker l(&_imp->pluginMemoryChunksMutex);
208 for (std::list<PluginMemoryWPtr>::iterator it = _imp->pluginMemoryChunks.begin(); it!=_imp->pluginMemoryChunks.end(); ++it) {
209 PluginMemoryPtr mem = it->lock();
210 if (!mem) {
211 continue;
212 }
213 mem->setUnregisterOnDestructor(false);
214 }
215 _imp->pluginMemoryChunks.clear();
216}
217
218#ifdef DEBUG
219void

Callers 1

Calls 5

beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected