Typed characters are mis-ordered when CPU usage is high
Takashi Yano
takashi.yano@nifty.ne.jp
Fri Mar 18 13:28:36 GMT 2022
On Fri, 18 Mar 2022 15:04:31 +0200
Orgad Shaneh wrote:
> On Fri, Mar 18, 2022 at 2:15 PM Takashi Yano <takashi.yano@nifty.ne.jp> wrote:
> > Thanks. I can reproduce the issue. I think I found the cause.
> > The two unexpected things happen.
> >
> > (1) wVirtualKeyCode and wVirtualScanCode of readback key event may
> > be null'ed even if they are not zero on WriteConsoleInputW().
> > Therefore, memcmp() report the event is not equal.
> > (2) WriteConsoleInputW() may not be atomic. The event sequence which
> > is written by WriteConsoleInputW() may be inserted by key input
> > in the middle of the sequence.
> >
> > A patch for these issues is attached. Could you please test?
>
> Awesome, looks good now. Thank you very much!
>
> Hope this is the last bit :)
Thanks for testing!
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin
mailing list