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

Function dlist_is_empty

src/include/lib/ilist.h:288–294  ·  view source on GitHub ↗

* Is the list empty? * * An empty list has either its first 'next' pointer set to NULL, or to itself. */

Source from the content-addressed store, hash-verified

286 * An empty list has either its first 'next' pointer set to NULL, or to itself.
287 */
288static inline bool
289dlist_is_empty(dlist_head *head)
290{
291 dlist_check(head);
292
293 return head->head.next == NULL || head->head.next == &(head->head);
294}
295
296/*
297 * Insert a node at the beginning of the list.

Callers 15

InitResourceCallbackFunction · 0.85
ReleaseResourceCallbackFunction · 0.85
SlabAllocFunction · 0.85
SlabFreeFunction · 0.85
GenerationResetFunction · 0.85
GenerationIsEmptyFunction · 0.85
get_flush_positionFunction · 0.85
LogicalRepApplyLoopFunction · 0.85

Calls 1

dlist_checkFunction · 0.85

Tested by

no test coverage detected