MCPcopy Create free account
hub / github.com/p-ranav/tabulate / waitingForWorkEnterKey

Function waitingForWorkEnterKey

samples/refresh_table.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9std::atomic_bool keep_running(true);
10
11void waitingForWorkEnterKey() {
12 while (keep_running) {
13 if (std::cin.get() == 10) {
14 keep_running = false;
15 }
16 }
17 return;
18}
19
20int main() {
21 std::thread tUserInput(waitingForWorkEnterKey);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected