Re: Win32 signal code - first try
От | Claudio Natoli |
---|---|
Тема | Re: Win32 signal code - first try |
Дата | |
Msg-id | A02DEC4D1073D611BAE8525405FCCE2B55F245@harris.memetrics.local обсуждение исходный текст |
Список | pgsql-hackers-win32 |
Merlin Moncure: > > looks as though blocked signals will be forever lost. If I'm right in my > > recollection, we'll need some way to requeue the APC (which might be > > non-trivial). > > Perhaps it would be easier to hold up the QueueAPC with a manual-switch > event object until the signal handler is cleared to run. That's a neat idea, but just have to be very careful here. Currently, the code does a ReadFile, queues the signal, and then a WriteFile. Calls to raise and/or kill to a process with a blocking signal queuing, as written, would fail, and take up to a second to do so. Also, and more pertinently, you may want to block some signals, but allow others through. Not sure how you imagine this would be handled, at least with a single event object, although perhaps I've misunderstood your intent. Cheers, Claudio --- Certain disclaimers and policies apply to all email sent from Memetrics. For the full text of these disclaimers and policies see <a href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em ailpolicy.html</a>
В списке pgsql-hackers-win32 по дате отправления: