---------- * pgstat_report_wait_start() - * * Called from places where server process needs to wait. This is called * to report wait event information. The wait information is stored * as 4-bytes where first byte represents the wait event class (type of * wait, for different types of wait, refer WaitClass) and the next * 3-bytes represent the actual wait event. Currently 2-bytes are used
| 284 | * ---------- |
| 285 | */ |
| 286 | static inline void |
| 287 | pgstat_report_wait_start(uint32 wait_event_info) |
| 288 | { |
| 289 | /* |
| 290 | * Since this is a four-byte field which is always read and written as |
| 291 | * four-bytes, updates are atomic. |
| 292 | */ |
| 293 | *(volatile uint32 *) my_wait_event_info = wait_event_info; |
| 294 | } |
| 295 | |
| 296 | /* ---------- |
| 297 | * pgstat_report_wait_end() - |
no outgoing calls
no test coverage detected