EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include <thread_structures.h>
Data Fields | |
int32_t * | sp |
struct tcb_t * | next |
struct tcb_t * | prev |
immutable int32_t | id |
priority_t | priority |
task_t | entry_point |
semaphore_t * | sem |
Thread Control Block definition
Definition at line 104 of file thread_structures.h.
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().