| 9 | std::atomic_bool keep_running(true); |
| 10 | |
| 11 | void waitingForWorkEnterKey() { |
| 12 | while (keep_running) { |
| 13 | if (std::cin.get() == 10) { |
| 14 | keep_running = false; |
| 15 | } |
| 16 | } |
| 17 | return; |
| 18 | } |
| 19 | |
| 20 | int main() { |
| 21 | std::thread tUserInput(waitingForWorkEnterKey); |
nothing calls this directly
no outgoing calls
no test coverage detected