Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance

Поиск
Список
Период
Сортировка
Искать
От
Andrew Dunstan
Тема
Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance
Дата
Msg-id
435937C7.8090801@dunslane.net
Ответ на
Список
Дерево обсуждения
Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance tweak "Qingqing Zhou" <zhouqq@cs.toronto.edu>
Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance tweak Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance Andrew Dunstan <andrew@dunslane.net>
Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance Qingqing Zhou <zhouqq@cs.toronto.edu>


Qingqing Zhou wrote:

>"Tom Lane"  wrote
>  
>
>>... so definitely worth fixing for 8.1 if we can convince ourselves
>>it's correct.
>>
>>    
>>
>
>Despite the performance, there is one thing I am not exactly sure. Shall we 
>add "volatile" quanlifier to at least pg_signal_queue? The dangerous place 
>is PGSemaphoreLock(). If the compiler cache this value somehow, then we are 
>in trouble, but the original way (check event directly) does not have this 
>problem.
>
>
>  
>
The fact this question is asked worries me a bit.

Also, I have a small style question - why use a nested if instead of 
just saying
 if (UNBLOCKED_SIGNAL_QUEUE() && WaitForSingleObjectEx(pgwin32_signal_event,0,TRUE) == WAIT_OBJECT_0)

?

cheers

andrew



В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Magnus Hagander
Дата:
FAQ