ChibiOS 21.11.4
nil_thread Struct Reference

Structure representing a thread. More...

#include <ch.h>

Collaboration diagram for nil_thread:
Collaboration graph

Data Fields

struct port_context ctx
 Processor context.
tstate_t state
 Thread state.
union { 
   msg_t   msg 
 Wake-up/exit message. More...
   void *   p 
 Generic pointer. More...
   os_instance_t *   nsp 
 Pointer to nil base struct. More...
   thread_reference_t *   trp 
 Pointer to thread reference. More...
   threads_queue_t *   tqp 
 Pointer to thread queue. More...
   thread_t *   tp 
 Pointer to thread. More...
   semaphore_t *   semp 
 Pointer to semaphore. More...
   eventmask_t   ewmask 
 Enabled events mask. More...
u1
volatile sysinterval_t timeout
 Timeout counter, zero if disabled.
eventmask_t epmask
 Pending events mask.
msg_t sntmsg
 Sent message.
stkalign_twabase
 Thread stack boundary.

Detailed Description

Structure representing a thread.

Definition at line 521 of file nil/include/ch.h.

Field Documentation

◆ ctx

struct port_context nil_thread::ctx

Processor context.

Definition at line 522 of file nil/include/ch.h.

◆ state

tstate_t nil_thread::state

Thread state.

Definition at line 523 of file nil/include/ch.h.

◆ msg

msg_t nil_thread::msg

Wake-up/exit message.

Definition at line 527 of file nil/include/ch.h.

◆ p

void* nil_thread::p

Generic pointer.

Definition at line 528 of file nil/include/ch.h.

◆ nsp

os_instance_t* nil_thread::nsp

Pointer to nil base struct.

Definition at line 529 of file nil/include/ch.h.

◆ trp

thread_reference_t* nil_thread::trp

Pointer to thread reference.

Definition at line 530 of file nil/include/ch.h.

◆ tqp

threads_queue_t* nil_thread::tqp

Pointer to thread queue.

Definition at line 531 of file nil/include/ch.h.

◆ tp

thread_t* nil_thread::tp

Pointer to thread.

Definition at line 532 of file nil/include/ch.h.

◆ semp

semaphore_t* nil_thread::semp

Pointer to semaphore.

Definition at line 534 of file nil/include/ch.h.

◆ ewmask

eventmask_t nil_thread::ewmask

Enabled events mask.

Definition at line 537 of file nil/include/ch.h.

◆ [union]

union { ... } nil_thread::u1

◆ timeout

volatile sysinterval_t nil_thread::timeout

Timeout counter, zero if disabled.

Definition at line 540 of file nil/include/ch.h.

◆ epmask

eventmask_t nil_thread::epmask

Pending events mask.

Definition at line 543 of file nil/include/ch.h.

◆ sntmsg

msg_t nil_thread::sntmsg

Sent message.

Definition at line 546 of file nil/include/ch.h.

◆ wabase

stkalign_t* nil_thread::wabase

Thread stack boundary.

Definition at line 549 of file nil/include/ch.h.