MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ReturnToPool

Method ReturnToPool

Source/Engine/Renderer/RenderList.cpp:265–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void RenderList::ReturnToPool(RenderList* cache)
266{
267 if (!cache)
268 return;
269 cache->Clear();
270
271 MemPoolLocker.Lock();
272 ASSERT(!FreeRenderList.Contains(cache));
273 FreeRenderList.Add(cache);
274 MemPoolLocker.Unlock();
275}
276
277void RenderList::CleanupCache()
278{

Callers 2

RenderMethod · 0.80
RenderMethod · 0.80

Calls 5

LockMethod · 0.80
UnlockMethod · 0.80
ClearMethod · 0.45
ContainsMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected