Allow condition variables to be used in interrupt code.
authorThomas Munro <tmunro@postgresql.org>
Mon, 1 Mar 2021 03:28:12 +0000 (16:28 +1300)
committerThomas Munro <tmunro@postgresql.org>
Mon, 1 Mar 2021 04:24:47 +0000 (17:24 +1300)
commitf5a5773a9dc4185414fe538525e20d8512c2ba35
tree1ccd54e64409d6197720f5e8fa64cccae5addc95
parent814f1d8bc395bb9b4c0ae090ceea60adfbeb8e49
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
src/backend/storage/lmgr/condition_variable.c