Re: SIGINT lost while program calls PeekMessage

2020-07-06 Thread Corinna Vinschen
On Jul 6 14:16, Jon Beniston wrote: > Hi Corinna, > > >Since your example code is running very tightly most of its time inside > >some Windows system DLL function, there's next to no chance to interrupt > >the thread to inject the signal handler call. Cygwin tries this 100 > >times per signal.

RE: SIGINT lost while program calls PeekMessage

2020-07-06 Thread Jon Beniston
Hi Corinna, >Since your example code is running very tightly most of its time inside >some Windows system DLL function, there's next to no chance to interrupt >the thread to inject the signal handler call. Cygwin tries this 100 >times per signal. If that fails, the signal gets lost. > >One way t

Re: SIGINT lost while program calls PeekMessage

2020-07-03 Thread Corinna Vinschen
On Jul 2 17:16, Jon Beniston wrote: > Hi, > > I have a Cygwin program that: > > - registers a SIGINT handler, via signal(SIGINT,h) > - creates a window, using Win32 CreateWindow > - and is then calling PeekMessage for that window in a loop > > It appears that while PeekMessage is being called,

SIGINT lost while program calls PeekMessage

2020-07-02 Thread Jon Beniston
Hi, I have a Cygwin program that: - registers a SIGINT handler, via signal(SIGINT,h) - creates a window, using Win32 CreateWindow - and is then calling PeekMessage for that window in a loop It appears that while PeekMessage is being called, any SIGINTs sent to the program are lost. Is this to be