Re: Assuming that TAS() will succeed the first time is verboten

Поиск
Список
Период
Сортировка
От ncm@zembu.com (Nathan Myers)
Тема Re: Assuming that TAS() will succeed the first time is verboten
Дата
Msg-id 20001228161030.P10336@store.zembu.com
обсуждение исходный текст
Ответ на Re: Assuming that TAS() will succeed the first time is verboten  ("Dominic J. Eidson" <sauron@the-infinite.org>)
Список pgsql-hackers
On Thu, Dec 28, 2000 at 05:26:23PM -0600, Dominic J. Eidson wrote:
> On Thu, 28 Dec 2000, Nathan Myers wrote:
> 
> > The code is based on some odd assumptions.  A select() with 0 delay 
> > returns immediately unless there is an interrupt during its (very short!) 
> 
> If you look closely, it's a select with a 2 second timeout.
> 
> >>> { 2, 0 }

I don't see that in src/backend/storage/buffer/s_lock.c:
 delay.tv_sec = 0; delay.tv_usec = s_spincycle[spin % S_NSPINCYCLE]; (void) select(0, NULL, NULL, NULL, &delay);

Nathan Myers
ncm@zembu.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Dominic J. Eidson"
Дата:
Сообщение: Re: Assuming that TAS() will succeed the first time is verboten
Следующее
От: Brent Verner
Дата:
Сообщение: Re: Alpha tas() patch