MCPcopy Create free account
hub / github.com/apache/cloudberry / SHMQueueEmpty

Function SHMQueueEmpty

src/backend/storage/ipc/shmqueue.c:179–190  ·  view source on GitHub ↗

* SHMQueueEmpty -- true if queue head is only element, false otherwise */

Source from the content-addressed store, hash-verified

177 * SHMQueueEmpty -- true if queue head is only element, false otherwise
178 */
179bool
180SHMQueueEmpty(const SHM_QUEUE *queue)
181{
182 Assert(ShmemAddrIsValid(queue));
183
184 if (queue->prev == queue)
185 {
186 Assert(queue->next == queue);
187 return true;
188 }
189 return false;
190}

Callers 15

ResLockAcquireFunction · 0.85
ResCleanUpLockFunction · 0.85
SetupLockInTableFunction · 0.85
CleanUpLockFunction · 0.85
lock_twophase_recoverFunction · 0.85
RWConflictExistsFunction · 0.85
GetSafeSnapshotFunction · 0.85
ReleasePredicateLocksFunction · 0.85

Calls 1

ShmemAddrIsValidFunction · 0.85

Tested by

no test coverage detected