| 77 | } |
| 78 | |
| 79 | Mode ScreenshotService::getMode() const { |
| 80 | auto lock = mutex.asScopedLock(); |
| 81 | if (!lock.lock(50 / portTICK_PERIOD_MS)) { |
| 82 | LOGGER.warn(LOG_MESSAGE_MUTEX_LOCK_FAILED); |
| 83 | return Mode::None; |
| 84 | } |
| 85 | |
| 86 | return mode; |
| 87 | } |
| 88 | |
| 89 | bool ScreenshotService::isTaskStarted() { |
| 90 | auto* current_task = task.get(); |
no test coverage detected