From aebce1e48e81559ffe5f496af855a1140d8e0107 Mon Sep 17 00:00:00 2001 From: nodist Date: Wed, 10 Jun 2026 10:21:32 -0400 Subject: rename shared qualifier to gc --- docs/application/thread.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/application/thread.md') 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; -- cgit v1.2.3