From 2e908a7be31558cc98a9f0e97556e49ee5748c16 Mon Sep 17 00:00:00 2001 From: nodist Date: Mon, 28 Sep 2026 16:15:39 -0400 Subject: inline some queue fns --- include/kpl/process.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'include/kpl/process.h') diff --git a/include/kpl/process.h b/include/kpl/process.h index 7d13daf..528365a 100644 --- a/include/kpl/process.h +++ b/include/kpl/process.h @@ -22,23 +22,11 @@ typedef struct { int8_t count, ring_pool_entries_pow2[KPL_CONFIG_THREAD_RING_POOL_COUNT]; } kpl_config_thread; -typedef struct _kpl_env kpl_env; - -typedef void kpl_task_fn(kpl_task *task, kpl_env *env); - -typedef struct _kpl_task { - struct _kpl_task *_Atomic next, *join; - // TODO - kpl_result result; - int32_t thread_id; - _Atomic bool join_ready; -} kpl_task; - typedef struct { int32_t thread_id; + _Atomic ssize_t priority; kpl_env *env; kpl_task_queue task_queue; - _Atomic ssize_t priority; // TODO sem_t sem; pthread_t pthread; @@ -46,7 +34,6 @@ typedef struct { typedef struct { kpl_config_thread *config_thread; - _Atomic ssize_t total_priority; kpl_thread *threads; kpl_ring_queue memory_pool[KPL_CONFIG_THREAD_RING_POOL_COUNT]; } kpl_process; -- cgit v1.2.3