diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-07 17:45:48 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-07 17:45:48 -0400 |
| commit | ceb874e83d44a2c3d7c7d167fc8853694538ae53 (patch) | |
| tree | 53bb07d0c52ad667e0a23cef0757817ca154aaa1 /docs/application/thread.md | |
| parent | 7df3d08d8dd0d81f24f0788b44efd37883d3c1c8 (diff) | |
type definitions with type_ptr
Diffstat (limited to 'docs/application/thread.md')
| -rw-r--r-- | docs/application/thread.md | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
