AKOS  v1.0.0
Documentation
Loading...
Searching...
No Matches
thread_t Struct Reference

Static thread descriptor used during thread table registration. More...

#include <thread.h>

Public Attributes

thread_id_t id
thread_func_t pf_thread
void * p_arg
uint8_t prio
size_t queue_size
size_t stack_size

Detailed Description

Static thread descriptor used during thread table registration.

Static thread descriptor used by AKOS_THREAD_DEFINE.

Definition at line 71 of file thread.h.

Member Data Documentation

◆ id

thread_id_t thread_t::id

Application-level thread ID; keep these dense from 0..N-1.

Definition at line 73 of file thread.h.

◆ p_arg

void* thread_t::p_arg

Argument passed to thread entry.

Definition at line 75 of file thread.h.

◆ pf_thread

thread_func_t thread_t::pf_thread

Thread entry function.

Definition at line 74 of file thread.h.

◆ prio

uint8_t thread_t::prio

Scheduler priority (lower value means higher priority).

Definition at line 76 of file thread.h.

◆ queue_size

size_t thread_t::queue_size

Message queue capacity for this thread.

Definition at line 77 of file thread.h.

◆ stack_size

size_t thread_t::stack_size

Requested stack size in 32-bit words.

Definition at line 78 of file thread.h.


The documentation for this struct was generated from the following file: