Re: Assuming that TAS() will succeed the first time is verboten - Mailing list pgsql-hackers

From ncm@zembu.com (Nathan Myers)
Subject Re: Assuming that TAS() will succeed the first time is verboten
Date
Msg-id 20001228161030.P10336@store.zembu.com
Whole thread Raw
In response to Re: Assuming that TAS() will succeed the first time is verboten  ("Dominic J. Eidson" <sauron@the-infinite.org>)
List 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 by date:

Previous
From: "Dominic J. Eidson"
Date:
Subject: Re: Assuming that TAS() will succeed the first time is verboten
Next
From: Brent Verner
Date:
Subject: Re: Alpha tas() patch