ChibiOS/NIL  3.2.2
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 626 of file ch.h.

Field Documentation

struct port_context nil_thread::ctx

Processor context.

Definition at line 627 of file ch.h.

tstate_t nil_thread::state

Thread state.

Definition at line 628 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 632 of file ch.h.

Referenced by chSchGoSleepTimeoutS(), and chSchReadyI().

void* nil_thread::p

Generic pointer.

Definition at line 633 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 634 of file ch.h.

Referenced by chSysTimerHandlerI(), and chThdSuspendTimeoutS().

threads_queue_t* nil_thread::tqp

Pointer to thread queue.

Definition at line 635 of file ch.h.

Referenced by chSysTimerHandlerI(), and chThdEnqueueTimeoutS().

semaphore_t* nil_thread::semp

Pointer to semaphore.

Definition at line 637 of file ch.h.

Referenced by chSemWaitTimeoutS(), and chSysTimerHandlerI().

eventmask_t nil_thread::ewmask

Enabled events mask.

Definition at line 640 of file ch.h.

Referenced by chEvtSignalI(), and chEvtWaitAnyTimeout().

volatile sysinterval_t nil_thread::timeout

Timeout counter, zero if disabled.

Definition at line 643 of file ch.h.

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

eventmask_t nil_thread::epmask

Pending events mask.

Definition at line 646 of file ch.h.

Referenced by chEvtSignalI(), and chEvtWaitAnyTimeout().

stkalign_t* nil_thread::wabase

Thread stack boundary.

Definition at line 649 of file ch.h.

Referenced by chSysInit().