diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-16 12:42:41 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-16 12:42:41 -0400 |
| commit | 7964cf08ac807ac9e7b6d579a25321a23adc9139 (patch) | |
| tree | 807799f7c4dea85fca31e3532b0e06f71f0f32ea /docs/application/memory.md | |
| parent | e99f60fe8cdef48aad9aa6a1b360b600443ac659 (diff) | |
new layout by dependecy graph
Diffstat (limited to 'docs/application/memory.md')
| -rw-r--r-- | docs/application/memory.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/application/memory.md b/docs/application/memory.md index 2689b62..eda866f 100644 --- a/docs/application/memory.md +++ b/docs/application/memory.md @@ -20,9 +20,9 @@ typedef struct _kpl_slab { typedef struct { uint32_t object_size, array_size; _Atomic size_t slab_length; - kpl_slab *root; - kpl_slab_obj *pool; - pthread_mutex_t slab_pool_mutex; + kpl_slab *slab; + kpl_slab_obj *head; + kpl_mutex mutex; } kpl_slab; #define KPL_POOL_HEADER(STRUCT) KPL_SLAB_HEADER(STRUCT); uint32_t obj_byte_size @@ -34,8 +34,8 @@ typedef struct _kpl_pool_obj { typedef strut { uint32_t min_obj_size; _Atomic size_t alloc_byte_size; - kpl_pool_obj *root; - pthread_mutex_t root_mutex; + kpl_pool_obj *head; + kpl_mutex mutex; } kpl_pool; ``` |
