MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_page_queue_contains

Function mi_page_queue_contains

3rd/mimalloc-2.0.9/src/page-queue.c:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119#if (MI_DEBUG>1)
120static bool mi_page_queue_contains(mi_page_queue_t* queue, const mi_page_t* page) {
121 mi_assert_internal(page != NULL);
122 mi_page_t* list = queue->first;
123 while (list != NULL) {
124 mi_assert_internal(list->next == NULL || list->next->prev == list);
125 mi_assert_internal(list->prev == NULL || list->prev->next == list);
126 if (list == page) break;
127 list = list->next;
128 }
129 return (list == page);
130}
131
132#endif
133

Callers 4

mi_page_queue_ofFunction · 0.85
mi_page_queue_removeFunction · 0.85
mi_page_queue_pushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected