* SHMQueueDelete -- remove an element from the queue and * close the links */
| 65 | * close the links |
| 66 | */ |
| 67 | void |
| 68 | SHMQueueDelete(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 |
no test coverage detected