| 427 | void stopScreenshotThread() { shutdownScreenshotThread = true; } |
| 428 | |
| 429 | void 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 | |
| 441 | static void shutdown_screenshot() { |
| 442 | stopScreenshotThread(); |
no outgoing calls
no test coverage detected