Re: FlexLocks - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: FlexLocks
Date
Msg-id 4EC38DC60200002500043042@gw.wicourts.gov
Whole thread Raw
In response to Re: FlexLocks  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: FlexLocks
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> wrote:
> Now maybe there is some better way to do this, but at the moment,
> I'm not seeing it.  If we call them all LWLocks, but only some of
> them support LWLockAcquire(), then that's going to be pretty
> weird. 
Is there any way to typedef our way out of it, such that a LWLock
*is a* FlexLock, but a FlexLock isn't a LWLock?  If we could do
that, you couldn't use just a plain old FlexLock in LWLockAcquire(),
but you could do the cleanups, etc., that you want.
-Kevin


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: FlexLocks
Next
From: "Kevin Grittner"
Date:
Subject: Re: strict aliasing