This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] workaround for sigproc_init


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.


Regards.

Attachment: workaround_sigproc.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]