pgsql: Add WAIT_EVENT_{CLASS,ID}_MASK in wait_event.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add WAIT_EVENT_{CLASS,ID}_MASK in wait_event.c
Date: 2023-07-31 07:21:05
Message-ID: E1qQNDE-0027Dv-5c@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add WAIT_EVENT_{CLASS,ID}_MASK in wait_event.c

These are useful to extract the class ID and the event ID associated to
a single uint32 wait_event_info. Only two code paths use them now, but
an upcoming patch will extend their use.

Discussion: https://postgr.es/m/ZMcJ7F7nkGkIs8zP@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7395a90db87bcb2f617d3c486657813122d3f151

Modified Files
--------------
src/backend/utils/activity/wait_event.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2023-07-31 07:55:33 pgsql: Bring some MSVC asserts in line with other platforms
Previous Message Michael Paquier 2023-07-31 02:37:09 pgsql: Avoid memory leak in rmtree() when path cannot be opened