thread_s Struct Reference

#include <defines.h>

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

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.


Field Documentation

Set to the number of children threads in active thread queue

Referenced by expression_op_func__join(), sim_add_thread(), and sim_kill_thread().

Pointer to previous thread in all pool

Referenced by sim_create_thread(), sim_display_thread(), and sim_kill_thread().

Pointer to current statement running in this thread

Referenced by funit_push_threads(), sim_add_thread(), sim_create_thread(), sim_display_thread(), sim_thread(), sim_thread_pop_head(), and sim_thread_push().

Set to TRUE when the first statement is being executed

Set to TRUE if this thread should be killed

Pointer to parent thread that spawned this thread

Referenced by sim_add_thread(), sim_create_thread(), sim_display_thread(), and sim_kill_thread().

struct { ... } thread_s::part

Pointer to re-entrant structure to use for this thread

Referenced by expression_op_func__func_call(), expression_op_func__passign(), sim_create_thread(), and sim_thread().

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 Sun Nov 21 00:55:43 2010 for Covered by  doxygen 1.6.3