MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / reset

Method reset

framework/semaphore_pool.cpp:99–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void SemaphorePool::reset()
100{
101 active_semaphore_count = 0;
102
103 // Now we can safely recycle the released semaphores.
104 for (auto &sem : released_semaphores)
105 {
106 semaphores.push_back(sem);
107 }
108
109 released_semaphores.clear();
110}
111
112uint32_t SemaphorePool::get_active_semaphore_count() const
113{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected