MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / waitScreenshotThreadIsOver

Function waitScreenshotThreadIsOver

layersvt/screenshot.cpp:429–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427void stopScreenshotThread() { shutdownScreenshotThread = true; }
428
429void waitScreenshotThreadIsOver() {
430 if (!screenshotThreadStarted) return;
431 {
432 std::unique_lock<std::mutex> lock(globalLock);
433 screenshotQueuedCV.notify_all();
434 }
435 if (screenshotWriterThread.joinable()) {
436 screenshotWriterThread.join();
437 }
438 screenshotThreadStarted = false;
439}
440
441static void shutdown_screenshot() {
442 stopScreenshotThread();

Callers 1

shutdown_screenshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected