EE445M RTOS
Taken at the University of Texas Spring 2015
tcb_t Struct Reference

#include <thread_structures.h>

Collaboration diagram for tcb_t:
Collaboration graph

Data Fields

int32_t * sp
 
struct tcb_tnext
 
struct tcb_tprev
 
immutable int32_t id
 
priority_t priority
 
task_t entry_point
 
semaphore_tsem
 

Detailed Description

Thread Control Block definition

Definition at line 104 of file thread_structures.h.

Field Documentation

task_t tcb_t::entry_point

The function used as this thread's entry point. This is recorded for developer convenience, i.e. the developer may get a handle to a tcb from his task pointer.

Definition at line 122 of file thread_structures.h.

Referenced by os_add_thread(), os_remove_thread(), and os_threading_init().

immutable int32_t tcb_t::id

Unique numeric identifier for the tcb.

Definition at line 115 of file thread_structures.h.

Referenced by _os_reset_thread_stack(), os_running_thread_id(), and os_threading_init().

struct tcb_t* tcb_t::next

linked-list pointer to next tcb

Definition at line 110 of file thread_structures.h.

Referenced by os_remove_thread().

struct tcb_t* tcb_t::prev

linked-list pointer to prev tcb

Definition at line 112 of file thread_structures.h.

Referenced by os_remove_thread().

priority_t tcb_t::priority

Definition at line 117 of file thread_structures.h.

Referenced by os_remove_thread().

semaphore_t* tcb_t::sem

Definition at line 128 of file thread_structures.h.

int32_t* tcb_t::sp

pointer to stack (valid for threads not running

Definition at line 107 of file thread_structures.h.

Referenced by _os_reset_thread_stack(), and os_threading_init().


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