Rework node obj pool to use objpool

This commit is contained in:
Antonio SJ Musumeci 2026-02-17 19:09:01 -06:00
parent 4aac5af89f
commit 385a1476c3
4 changed files with 44 additions and 68 deletions

View file

@ -1,10 +1,10 @@
#pragma once
#include "lock.h"
#include "lfmp.h"
typedef struct node_s node_t;
struct node_s
#include <cstdint>
struct node_t
{
node_t *name_next;
node_t *id_next;
@ -26,6 +26,5 @@ struct node_s
node_t *node_alloc();
void node_free(node_t*);
int node_gc1();
void node_gc();
lfmp_t *node_lfmp();
void node_clear();