| From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Use WaitLatch() for condition variables. |
| Date: | 2020-07-30 05:46:20 |
| Message-ID: | E1k11OW-0000YB-LE@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Use WaitLatch() for condition variables.
Previously, condition_variable.c created a long lived WaitEventSet to
avoid extra system calls. WaitLatch() now uses something similar
internally, so there is no point in wasting an extra kernel descriptor.
Reviewed-by: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Discussion: https://postgr.es/m/CA%2BhUKGJAC4Oqao%3DqforhNey20J8CiG2R%3DoBPqvfR0vOJrFysGw%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e2d394df5df28ab5ee4bfac6b13837e99e24045d
Modified Files
--------------
src/backend/storage/lmgr/condition_variable.c | 28 +++++----------------------
1 file changed, 5 insertions(+), 23 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2020-07-30 06:51:22 | pgsql: doc: Mention index references in pg_inherits |
| Previous Message | Peter Geoghegan | 2020-07-29 23:01:20 | pgsql: Backpatch tuplesort.c assertion. |