* Check whether the resgroup wait queue is empty. */
| 2519 | * Check whether the resgroup wait queue is empty. |
| 2520 | */ |
| 2521 | static bool |
| 2522 | groupWaitQueueIsEmpty(const ResGroupData *group) |
| 2523 | { |
| 2524 | const PROC_QUEUE *waitQueue; |
| 2525 | |
| 2526 | Assert(LWLockHeldByMeInMode(ResGroupLock, LW_EXCLUSIVE)); |
| 2527 | |
| 2528 | groupWaitQueueValidate(group); |
| 2529 | |
| 2530 | waitQueue = &group->waitProcs; |
| 2531 | |
| 2532 | return waitQueue->size == 0; |
| 2533 | } |
| 2534 | |
| 2535 | #ifdef USE_ASSERT_CHECKING |
| 2536 | /* |
no test coverage detected