Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ThreadList Class Reference

Inheritance diagram for ThreadList:
[legend]
Collaboration diagram for ThreadList:
[legend]
List of all members.

Public Methods

 ThreadList (KernelState ks)
 ThreadList (ThreadList tl)
void add (int index, ThreadInfo th)
boolean anyAliveThread ()
void backtrackTo (ArrayOffset storing, Object backtrack)
Object clone ()
ThreadInfo get (int index)
Object getBacktrackData ()
int[] getStoringData ()
int length ()
ThreadInfo locate (int objref)
void mark ()
void remove (int index)

Public Attributes

KernelState ks

Private Attributes

ThreadInfo[] threads

Detailed Description

Contains the list of the threads. It extends the storage interface.

Definition at line 7 of file ThreadList.java.


Constructor & Destructor Documentation

ThreadList::ThreadList KernelState   ks [inline]
 

Creates a new empty thread list.

Definition at line 21 of file ThreadList.java.


Member Function Documentation

void ThreadList::add int   index,
ThreadInfo   th
[inline]
 

Adds a new thread to the list.

Definition at line 38 of file ThreadList.java.

Referenced by KernelState::newThread().

void ThreadList::backtrackTo ArrayOffset   storing,
Object   backtrack
[inline]
 

Restores the state.

Definition at line 60 of file ThreadList.java.

ThreadInfo ThreadList::get int   index [inline]
 

Returns a specific thread.

Definition at line 97 of file ThreadList.java.

Object ThreadList::getBacktrackData   [inline]
 

Returns the data used for restoring the state.

Definition at line 103 of file ThreadList.java.

int [] ThreadList::getStoringData   [inline]
 

Returns the data used for storing the state.

Definition at line 119 of file ThreadList.java.

int ThreadList::length   [inline]
 

Returns the length of the list.

Definition at line 155 of file ThreadList.java.

Referenced by KernelState::newThread().

void ThreadList::remove int   index [inline]
 

Removes a thread from the list.

Definition at line 175 of file ThreadList.java.


Member Data Documentation

KernelState ThreadList::ks
 

Reference of the kernel state this dynamic area is in.

Definition at line 16 of file ThreadList.java.

ThreadInfo [] ThreadList::threads [private]
 

The threads.

Definition at line 11 of file ThreadList.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:22:28 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001