Re: Condition variables vs interrupts
Shawn Debnath <sdn@amazon.com>
From: Shawn Debnath <sdn@amazon.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Tomas Vondra <tomas.vondra@2ndquadrant.com>
Date: 2019-12-21T01:09:46Z
Lists: pgsql-hackers
On Fri, Dec 20, 2019 at 12:05:34PM +1300, Thomas Munro wrote: > I think we should probably just remove the unusual ResetLatch() call, > rather than adding a CFI(). See attached. Thoughts? I agree: removing the ResetLatch() and having the wait event code deal with it is a better way to go. I wonder why the reset was done in the first place? -- Shawn Debnath Amazon Web Services (AWS)
Commits
-
Don't reset latch in ConditionVariablePrepareToSleep().
- 78aaa0e82335 13.0 landed
-
Introduce timed waits for condition variables.
- 1321509fa432 13.0 cited