diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-08 20:21:32 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-08 20:21:32 -0400 |
| commit | 4b46d1e1b306a8573113aa971c5f8811256e2bd0 (patch) | |
| tree | dc26bf8eb4185978063f91dc1c793bf79b06159e /docs/application/thread.md | |
| parent | 51c371db6ced53b8f9198890672961ef912a9aad (diff) | |
ring buffer pool allocators
Diffstat (limited to 'docs/application/thread.md')
| -rw-r--r-- | docs/application/thread.md | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/docs/application/thread.md b/docs/application/thread.md index f871db7..6d3f76f 100644 --- a/docs/application/thread.md +++ b/docs/application/thread.md @@ -22,13 +22,6 @@ typedef struct _task { _Atomic bool join_ready; } task; -#define KPL_TASK_SLAB_SIZE 50 - -typedef struct _kpl_task_slab { - struct _kpl_task_slab *next; - kpl_task array[KPL_TASK_SLAB_SIZE]; -} kpl_task_slab; - #define KPL_QUEUE_ASYNC -1 #define KPL_MAIN_THREAD 0 @@ -40,13 +33,11 @@ typedef struct { } dummy; } kpl_task_queue; +// TODO RING BUFFER ALLOCATOR + typedef struct { kpl_task_queue queue; _Atomic ssize_t priority; - uint32_t slab_array_index; - _Atomic uint32_t pool_size; - kpl_task_slab *slab; - kpl_task *pool; sem_t counter; pthread_t thread; } kpl_thread; |
