From 021b37cc3aea97fe17a45dae78e34ea8b7750147 Mon Sep 17 00:00:00 2001 From: Kevin Yonan Date: Tue, 14 Jun 2022 22:03:13 -0700 Subject: [PATCH] correcting more information about mempool. --- raylib-memory-pool.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/raylib-memory-pool.md b/raylib-memory-pool.md index 5b3ee84..50aab00 100644 --- a/raylib-memory-pool.md +++ b/raylib-memory-pool.md @@ -15,8 +15,7 @@ By Kevin 'Assyrianic' Yonan @ https://github.com/assyrianic The memory pool encapsulates two public structs: * `freeList` which is an abstracted doubly linked list consisting of a `head` and `tail` pointer to `MemNode` * A `len` that tracks the amount of nodes the linked list holds. -* `maxNodes` which is used for auto-defragging (explained below), -* and `autoDefrag` which controls whether auto-defragging will execute or not. +* an array of doubly linked lists that store fixed size blocks called `buckets`. ```c typedef struct MemNode { size_t size; @@ -25,7 +24,7 @@ The memory pool encapsulates two public structs: typedef struct AllocList { MemNode *head, *tail; - size_t len, maxNodes; + size_t len; } AllocList; ```