pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow condition variables to be used in interrupt code.
Date: Mon, 01 Mar 2021 04:45:35 +0000
Message-ID: <E1lGaR5-0000lC-K0@gemulon.postgresql.org> (raw)

Allow condition variables to be used in interrupt code.

Adjust the condition variable sleep loop to work correctly when code
reached by its internal CHECK_FOR_INTERRUPTS() call interacts with
another condition variable.

There are no such cases currently, but a proposed patch would do this.

Discussion: https://postgr.es/m/CA+hUKGLdemy2gBm80kz20GTe6hNVwoErE8KwcJk6-U56oStjtg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f5a5773a9dc4185414fe538525e20d8512c2ba35

Modified Files
--------------
src/backend/storage/lmgr/condition_variable.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)



Message-ID: <E1lGaR5-0000lC-K0@gemulon.postgresql.org>
Permalink:  ../E1lGaR5-0000lC-K0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lGaR5-0000lC-K0@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Allow condition variables to be used in interrupt code.
  In-Reply-To: <E1lGaR5-0000lC-K0@gemulon.postgresql.org>
  References: <E1lGaR5-0000lC-K0@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox