Windows Console thread. Just loop and signal when input has been received */
| 54 | |
| 55 | /* Windows Console thread. Just loop and signal when input has been received */ |
| 56 | static void WINAPI CheckForConsoleInput() |
| 57 | { |
| 58 | SetCurrentThreadName("ottd:win-console"); |
| 59 | |
| 60 | for (;;) { |
| 61 | std::getline(std::cin, _win_console_thread_buffer); |
| 62 | |
| 63 | /* Signal input waiting that input is read and wait for it being handled. */ |
| 64 | SignalObjectAndWait(_hInputReady, _hWaitForInputHandling, INFINITE, FALSE); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | static void CreateWindowsConsoleThread() |
| 69 | { |
nothing calls this directly
no test coverage detected