forked from longturn/freeciv21
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try once again to fix stdin handling on Windows
On Windows, there is apparently no unified non-blocking API to wait for input on stdin. Thus, call the blocking API from a worker thread. Tested the following use cases: * Starting from the Windows console * Starting from Windows Explorer (should be the same, but who knows) * Starting from the client (I guess stdin is a named pipe in this case) * Starting from the MSYS console (no idea what it uses, maybe a file) The thread is only used on Windows, no reason for the extra overhead to propagate to sane OSes. Closes longturn#850.
- Loading branch information
Showing
5 changed files
with
243 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
set(CMAKE_AUTOMOC true) | ||
|
||
# Generate the packet handling code | ||
add_custom_command( | ||
OUTPUT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.