From 7fd642630ee17f7150c1b881631acbe422b3a26b Mon Sep 17 00:00:00 2001 From: nodist Date: Sat, 13 Jun 2026 19:03:37 -0400 Subject: gnu99 --- docs/application/thread.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/application/thread.md') diff --git a/docs/application/thread.md b/docs/application/thread.md index a6b77e6..ee2a317 100644 --- a/docs/application/thread.md +++ b/docs/application/thread.md @@ -11,7 +11,7 @@ typedef void kpl_task_fn(kpl_task *t); typedef struct _kpl_task { KPL_POOL_HEADER(_kpl_task); - atomic_flag next_ready; + _Atomic bool next_ready; uint16_t thread_id; kpl_task_fn *fn; kpl_group *state; @@ -20,7 +20,7 @@ typedef struct _kpl_task { } kpl_task; typedef struct { - atomic_flag gc_wait; + _Atomic bool gc_wait; kpl_task *queue_head, *queue_tail; pthread_t thread; } kpl_thread; @@ -29,7 +29,7 @@ typedef struct { static int32_t available_threads; // find with sched_getaffinity -static atomic_int_fast32_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