Add WAIT_EVENT_{CLASS,ID}_MASK in wait_event.c
commit7395a90db87bcb2f617d3c486657813122d3f151
authorMichael Paquier <michael@paquier.xyz>
Mon, 31 Jul 2023 07:14:47 +0000 (31 16:14 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 31 Jul 2023 07:14:47 +0000 (31 16:14 +0900)
tree50d45b55315331249a15cbcb9f60dd177adb7c43
parentf1e9f6bbfa536992eac6c094882b3afcd9e90fb4
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
src/backend/utils/activity/wait_event.c