ChibiOS/NIL  3.1.0
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. More...
 
tstate_t state
 Thread state. More...
 
volatile sysinterval_t timeout
 Timeout counter, zero if disabled. More...
 
eventmask_t epmask
 Pending events mask. More...
 
stkalign_t * wabase
 Thread stack boundary. More...
 
msg_t msg
 Wake-up message. More...
 
void * p
 Generic pointer. More...
 
thread_reference_ttrp
 Pointer to thread reference. More...
 
threads_queue_ttqp
 Pointer to thread queue. More...
 
semaphore_tsemp
 Pointer to semaphore. More...
 
eventmask_t ewmask
 Enabled events mask. More...
 

Detailed Description

Structure representing a thread.

Definition at line 615 of file ch.h.

Field Documentation

struct port_context nil_thread::ctx

Processor context.

Definition at line 616 of file ch.h.

tstate_t nil_thread::state

Thread state.

Definition at line 617 of file ch.h.

Referenced by chSchGoSleepTimeoutS(), chSchReadyI(), nil_find_thread(), and nil_ready_all().

msg_t nil_thread::msg

Wake-up message.

Definition at line 621 of file ch.h.

Referenced by chSchGoSleepTimeoutS(), and chSchReadyI().

void* nil_thread::p

Generic pointer.

Definition at line 622 of file ch.h.

Referenced by nil_find_thread(), and nil_ready_all().

thread_reference_t* nil_thread::trp

Pointer to thread reference.

Definition at line 623 of file ch.h.

Referenced by chSysTimerHandlerI(), and chThdSuspendTimeoutS().

threads_queue_t* nil_thread::tqp

Pointer to thread queue.

Definition at line 624 of file ch.h.

Referenced by chSysTimerHandlerI(), and chThdEnqueueTimeoutS().

semaphore_t* nil_thread::semp

Pointer to semaphore.

Definition at line 626 of file ch.h.

Referenced by chSemWaitTimeoutS(), and chSysTimerHandlerI().

eventmask_t nil_thread::ewmask

Enabled events mask.

Definition at line 629 of file ch.h.

Referenced by chEvtSignalI(), and chEvtWaitAnyTimeout().

volatile sysinterval_t nil_thread::timeout

Timeout counter, zero if disabled.

Definition at line 632 of file ch.h.

Referenced by chSchGoSleepTimeoutS(), chSchReadyI(), and chSysTimerHandlerI().

eventmask_t nil_thread::epmask

Pending events mask.

Definition at line 635 of file ch.h.

Referenced by chEvtSignalI(), and chEvtWaitAnyTimeout().

stkalign_t* nil_thread::wabase

Thread stack boundary.

Definition at line 638 of file ch.h.

Referenced by chSysInit().