From ceb874e83d44a2c3d7c7d167fc8853694538ae53 Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 7 Jun 2026 17:45:48 -0400 Subject: type definitions with type_ptr --- docs/application/thread.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/application/thread.md') diff --git a/docs/application/thread.md b/docs/application/thread.md index 56d8566..3dc0b2f 100644 --- a/docs/application/thread.md +++ b/docs/application/thread.md @@ -26,17 +26,17 @@ typedef struct { #define KPL_MAX_THREADS 64 -uint16_t available_threads; // find with sched_getaffinity +static uint16_t available_threads; // find with sched_getaffinity -_Atomic uint16_t running_threads; // init to available_threads +static _Atomic uint16_t running_threads; // init to available_threads -kpl_task *async_queue_head, *async_queue_tail; +static kpl_task *async_queue_head, *async_queue_tail; -pthread_mutex_t async_mutex; +static pthread_mutex_t async_mutex; -pthread_cond_t async_cond; +static pthread_cond_t async_cond; -kpl_thread threads[KPL_MAX_THREADS]; +static kpl_thread threads[KPL_MAX_THREADS]; ``` ## Task State -- cgit v1.2.3