[PATCH] workaround for sigproc_init

jojelino jojelino@gmail.com
Fri Jul 29 11:41:00 GMT 2011

As sigproc_init is called during dll initialization, wait_sig thread is 
not created as soon as possible.(this is known in msdn createthread 
reference. http://msdn.microsoft.com/en-us/library/ms682453(v=vs.85).aspx)
And then wait_sig starts to wake up as sig_dispatch_pending enters 
waitforsingleobject. then main thread stops for few ms. and it shows 
poor performance.
as a workaround, issue user apc call, let the os decide when to call them.
And the result was quite good. patch,changelog modified are attached.
Please review it.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: workaround_sigproc.diff
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110729/e5800f1d/attachment.ksh>

More information about the Cygwin-patches mailing list