且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows上不阻塞的情况下读取可用输入

更新时间:2022-02-16 23:14:22

为什么不从第二个线程读取输入?根据您的情况,这可能是一种更简单的方法,而不是使用非阻塞IO.

Why not read the input from a second thread? Depending on your situation, it might be a much easier approach, instead of using non-blocking IO's.