Re: [HACKERS] Re: [PATCHES] patches for 6.2.1p6

Bruce Momjian <maillist@candle.pha.pa.us>

From: Bruce Momjian <maillist@candle.pha.pa.us>
To: scrappy@hub.org (The Hermit Hacker)
Cc: dg@illustra.com, lockhart@alumni.caltech.edu, dz@cs.unitn.it, hackers@postgreSQL.org
Date: 1998-03-17T14:20:00Z
Lists: pgsql-hackers
> 
> On Mon, 16 Mar 1998, David Gould wrote:
> 
> > If this will work, I am willing to hack this together tomorrow.
> > What is the time frame for accepting a patch like this?
> 
> 	Assuming that its *clean* (clean meaning that Bruce fully approves
> of it, as this is his area of the code...well, one of them
> *grin*)...tomorrow would be great :)  If Bruce has *any* doubts though, it
> doesn't go in until after I do the patch I want to do...

David, go for it.  The code is all local in two files, and I think you
can basically change all the do{test-and-set} while(lock-is-false)
loops to:

	do{test-and-set} while(lock-is-false && select ())

Pretty easy.  No need to test multiple platforms.  The ones where the
loop is integrated into the asm(), leave them for later.

-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)