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

Function SHMQueueDelete

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

* SHMQueueDelete -- remove an element from the queue and * close the links */

Source from the content-addressed store, hash-verified

65 * close the links
66 */
67void
68SHMQueueDelete(SHM_QUEUE *queue)
69{
70 SHM_QUEUE *nextElem = queue->next;
71 SHM_QUEUE *prevElem = queue->prev;
72
73 Assert(ShmemAddrIsValid(queue));
74 Assert(ShmemAddrIsValid(nextElem));
75 Assert(ShmemAddrIsValid(prevElem));
76
77 prevElem->next = queue->next;
78 nextElem->prev = queue->prev;
79
80 queue->prev = queue->next = NULL;
81}
82
83/*
84 * SHMQueueInsertBefore -- put elem in queue before the given queue

Callers 15

ResCleanUpLockFunction · 0.85
ResProcWakeupFunction · 0.85
ResRemoveFromWaitQueueFunction · 0.85
ResIncrementRemoveFunction · 0.85
groupWaitQueuePopFunction · 0.85
groupWaitQueueEraseFunction · 0.85
SyncRepCancelWaitFunction · 0.85
SyncRepCleanupAtProcExitFunction · 0.85
SyncRepWakeQueueFunction · 0.85
LockAcquireExtendedFunction · 0.85
CleanUpLockFunction · 0.85

Calls 1

ShmemAddrIsValidFunction · 0.85

Tested by

no test coverage detected