diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-10 10:21:32 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-10 10:21:32 -0400 |
| commit | aebce1e48e81559ffe5f496af855a1140d8e0107 (patch) | |
| tree | 4ae6a60e627e26a8cf748fef80de8929ddd2e83e /docs/application/thread.md | |
| parent | 2ed2fbbc6f233f8aedf14e5d064451c3dea90d87 (diff) | |
rename shared qualifier to gc
Diffstat (limited to 'docs/application/thread.md')
| -rw-r--r-- | docs/application/thread.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/application/thread.md b/docs/application/thread.md index 7e13d71..fd5bb5d 100644 --- a/docs/application/thread.md +++ b/docs/application/thread.md @@ -17,6 +17,7 @@ typedef struct _kpl_task { kpl_group *state; kpl_interface *ret_interface; kpl_result ret; + _Atomic int32_t ref_count; } kpl_task; typedef struct { @@ -27,9 +28,9 @@ typedef struct { #define KPL_MAX_THREADS 64 -static uint16_t available_threads; // find with sched_getaffinity +static int32_t available_threads; // find with sched_getaffinity -static _Atomic uint16_t running_threads; // init to available_threads +static _Atomic int32_t running_threads; // init to available_threads static kpl_task *async_queue_head, *async_queue_tail; |
