PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
pool_t Struct Reference

Pool structure. More...

#include <pool.h>

Collaboration diagram for pool_t:

Data Fields

atomic_size_t used
 Number of used elements.
 
atomic_uint64_t free
 The tagged head of the free list.
 
void * elements
 Pointer to the elements array.
 
size_t elementSize
 Size of each element.
 
size_t nextOffset
 Offset of a pool_idx_t variable within each element used for the free list.
 
size_t capacity
 Maximum number of elements.
 

Detailed Description

Pool structure.

Definition at line 37 of file pool.h.

Field Documentation

◆ used

atomic_size_t pool_t::used

Number of used elements.

Definition at line 39 of file pool.h.

◆ free

atomic_uint64_t pool_t::free

The tagged head of the free list.

Definition at line 40 of file pool.h.

◆ elements

void* pool_t::elements

Pointer to the elements array.

Definition at line 41 of file pool.h.

◆ elementSize

size_t pool_t::elementSize

Size of each element.

Definition at line 42 of file pool.h.

◆ nextOffset

size_t pool_t::nextOffset

Offset of a pool_idx_t variable within each element used for the free list.

Definition at line 43 of file pool.h.

◆ capacity

size_t pool_t::capacity

Maximum number of elements.

Definition at line 44 of file pool.h.


The documentation for this struct was generated from the following file: