MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getMode

Method getMode

Tactility/Source/service/screenshot/Screenshot.cpp:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79Mode 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
89bool ScreenshotService::isTaskStarted() {
90 auto* current_task = task.get();

Callers 1

Calls 3

asScopedLockMethod · 0.80
warnMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected