summaryrefslogtreecommitdiff
path: root/docs/application/thread.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/application/thread.md')
-rw-r--r--docs/application/thread.md6
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;