diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-06 15:42:50 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-06 15:42:50 -0400 |
| commit | 7df3d08d8dd0d81f24f0788b44efd37883d3c1c8 (patch) | |
| tree | 8a30d983fe92451f2b7048e06ee8f1121e314a6a /docs/application/thread.md | |
| parent | 1d5f5dd3cd5cc07352379fe33930770e3d203f3a (diff) | |
start io and remove print op
Diffstat (limited to 'docs/application/thread.md')
| -rw-r--r-- | docs/application/thread.md | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/application/thread.md b/docs/application/thread.md index 4ee5688..56d8566 100644 --- a/docs/application/thread.md +++ b/docs/application/thread.md @@ -9,18 +9,14 @@ typedef struct _kpl_task kpl_task; typedef void kpl_task_fn(kpl_task *t); -#ifndef KPL_TASK_STATE_SIZE -#define KPL_TASK_STATE_SIZE 20 -#endif - typedef struct _kpl_task { POOL_HEADER(kpl_task); _Atomic bool join_ready; uint16_t worker_id; kpl_task_fn *fn; + kpl_tuple *state; kpl_interface *ret_interface; kpl_result ret; - kpl_class state[KPL_TASK_STATE_SIZE]; } kpl_task; typedef struct { @@ -43,6 +39,16 @@ pthread_cond_t async_cond; kpl_thread threads[KPL_MAX_THREADS]; ``` +## Task State + +```text +0 -> length +native : arguments +process : arguments, locals +closure : arguments, locals, closure function +iterator : arguments, locals, iterator functions, iterator function index +``` + ## Per Process Task Queue ## Asynchronous Task Queue |
