MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / Stop

Method Stop

common/src/handler/KeyScanner.cpp:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void KeyScanner::Stop() {
100#ifdef LINUX
101 if(!m_IsRunning)
102 return;
103
104 m_IsRunning = false;
105 for(auto fd : m_KeyboardFds)
106 close(fd);
107 for(auto &thread : m_ScanThreads)
108 if(thread.joinable())
109 thread.join();
110 m_KeyboardFds.clear();
111 m_ScanThreads.clear();
112#endif
113}
114
115#ifdef LINUX
116void KeyScanner::ScanThread(int idx) {

Callers 4

~PairingFormMethod · 0.45
UpdateStepFormMethod · 0.45
GetResultMethod · 0.45
RunServerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected