| От | Tom Lane |
|---|---|
| Тема | Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance |
| Дата | |
| Msg-id | 9145.1130211554@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance (Qingqing Zhou <zhouqq@cs.toronto.edu>) |
| Ответы |
Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance
|
| Список | pgsql-hackers |
Qingqing Zhou <zhouqq@cs.toronto.edu> writes:
> I tried to persuade myself that removing all WaitForSingleObjectEx() is
> safe ... the thing is we will false alarm EINTR as Magnus said (details to
> repeat it are list below in case).
Just to repeat myself: there were false alarms before. The interleaving
you describe could equally well happen if a new signal is sent just
after the old code executes WaitForSingleObjectEx and sees that a
previous signal is waiting for it. Both old and new signals can be
cleared by the recipient before the second signal sender gets as far as
setting the event.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера