Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

thread_s Struct Reference

#include <defines.h>


Detailed Description

Simulator feature that keeps track of head pointer for a given thread along with pointers to the parent and children thread of this thread. Threads allow us to handle task calls and fork/join statements.


Data Fields

func_unitfunit
threadparent
statementcurr
reentrantren
union {
   uint8   all
   struct {
      uint8   state: 2
      uint8   kill: 1
      uint8   exec_first: 1
   }   part
suppl
unsigned active_children
threadqueue_prev
threadqueue_next
threadall_prev
threadall_next
sim_time curr_time


Field Documentation

unsigned thread_s::active_children
 

Set to the number of children threads in active thread queue

uint8 thread_s::all
 

thread* thread_s::all_next
 

Pointer to next thread in all pool

thread* thread_s::all_prev
 

Pointer to previous thread in all pool

statement* thread_s::curr
 

Pointer to current statement running in this thread

sim_time thread_s::curr_time
 

Set to the current simulation time for this thread

uint8 thread_s::exec_first
 

Set to TRUE when the first statement is being executed

func_unit* thread_s::funit
 

Pointer to functional unit that this thread is running for

uint8 thread_s::kill
 

Set to TRUE if this thread should be killed

thread* thread_s::parent
 

Pointer to parent thread that spawned this thread

struct { ... } thread_s::part
 

thread* thread_s::queue_next
 

Pointer to next thread in active/delayed queue

thread* thread_s::queue_prev
 

Pointer to previous thread in active/delayed queue

reentrant* thread_s::ren
 

Pointer to re-entrant structure to use for this thread

uint8 thread_s::state
 

Set to current state of this thread (see Thread States for legal values)

union { ... } thread_s::suppl
 


The documentation for this struct was generated from the following file:
Generated on Wed Jun 17 22:19:25 2009 for Covered by doxygen 1.3.4