diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-13 19:03:37 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-13 19:03:37 -0400 |
| commit | 7fd642630ee17f7150c1b881631acbe422b3a26b (patch) | |
| tree | 55e34ae5a391b2fea34e3285f703262d4edb49ae /docs/application/thread.md | |
| parent | 59e9416150b9f0ac01b57e7fe30c893f247bc8f6 (diff) | |
gnu99
Diffstat (limited to 'docs/application/thread.md')
| -rw-r--r-- | docs/application/thread.md | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
