MCPcopy Create free account
hub / github.com/comaps/comaps / CollectObjects

Method CollectObjects

libs/drape/vulkan/vulkan_object_manager.cpp:307–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307void VulkanObjectManager::CollectObjects(uint32_t inflightFrameIndex)
308{
309 auto const currentThreadId = std::this_thread::get_id();
310 if (currentThreadId == m_renderers[ThreadType::Frontend])
311 {
312 CollectObjectsForThread(m_queuesToDestroy[ThreadType::Frontend][inflightFrameIndex]);
313 }
314 else if (currentThreadId == m_renderers[ThreadType::Backend])
315 {
316 CollectObjectsForThread(m_queuesToDestroy[ThreadType::Backend][kBackendQueueIndex]);
317
318 std::lock_guard<std::mutex> lock(m_destroyMutex);
319 CollectObjectsForThread(m_queuesToDestroy[ThreadType::Other][kOtherQueueIndex]);
320 }
321}
322
323void VulkanObjectManager::CollectObjectsForThread(VulkanObjectArray & objects)
324{

Callers 1

CollectMemoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected