diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-09-28 16:15:39 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-09-28 16:15:39 -0400 |
| commit | 2e908a7be31558cc98a9f0e97556e49ee5748c16 (patch) | |
| tree | 3c8d8a7123d46b5e2b8f6a5c9943faf4c64c2efd /include/kpl/process.h | |
| parent | 9a82127c476bf99556bbc69e181025afcba19d26 (diff) | |
inline some queue fns
Diffstat (limited to 'include/kpl/process.h')
| -rw-r--r-- | include/kpl/process.h | 15 |
1 files changed, 1 insertions, 14 deletions
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; |
