ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_esp_hosted_thread_slot_t Struct Reference

One row of the fixed thread table. More...

Collaboration diagram for ra8_esp_hosted_thread_slot_t:

Data Fields

TX_THREAD cb
 ThreadX control block; must stay first.
ra8_esp_hosted_thread_entry_t entry
 Core-supplied thread body.
void * arg
 Argument handed to the body.
char name [k_ra8_esp_hosted_name_max]
 Bounded name copy.

Detailed Description

One row of the fixed thread table.

The ThreadX control block is first, so the slot address doubles as the opaque thread handle. The entry point is kept beside it because the core's signature takes void const* while ThreadX passes a ULONG.

Invariant
entry is non-null while the row is in use.
name is always NUL-terminated.
Example:
thread_handle_t t = g_h.funcs->_h_thread_create("spi_trans", 12U, 4096U, fn, nullptr);
void * thread_handle_t
Opaque handle to a port-owned thread.
struct hosted_config_t g_h
The handle the vendored core dereferences to reach the vtable.
See also
priv_ra8_esp_hosted_rtos_bind
Since
0.1.0

Definition at line 130 of file ra8_esp_hosted_rtos.c.

Field Documentation

◆ arg

void* ra8_esp_hosted_thread_slot_t::arg

Argument handed to the body.

Definition at line 133 of file ra8_esp_hosted_rtos.c.

Referenced by internal_h_thread_create().

◆ cb

TX_THREAD ra8_esp_hosted_thread_slot_t::cb

ThreadX control block; must stay first.

Definition at line 131 of file ra8_esp_hosted_rtos.c.

Referenced by internal_h_thread_create().

◆ entry

ra8_esp_hosted_thread_entry_t ra8_esp_hosted_thread_slot_t::entry

Core-supplied thread body.

Definition at line 132 of file ra8_esp_hosted_rtos.c.

Referenced by internal_h_thread_create().

◆ name

char ra8_esp_hosted_thread_slot_t::name[k_ra8_esp_hosted_name_max]

Bounded name copy.

Definition at line 134 of file ra8_esp_hosted_rtos.c.

Referenced by internal_h_thread_create().


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