All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.toolkit.media.ThreadQueue

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----ejmf.toolkit.media.ThreadQueue

public class ThreadQueue
extends Thread
The ThreadQueue class provides a mechanism to run threads serially. When a thread is added, it will be started as soon as all threads added before it have completed.


Constructor Index

 o ThreadQueue()
Constructs a ThreadQueue.

Method Index

 o addThread(Thread)
Add a thread to this ThreadQueue.
 o run()
Monitor the thread queue.
 o stopThreads()
Stop the currently running thread and any threads queued to run.

Constructors

 o ThreadQueue
 public ThreadQueue()
Constructs a ThreadQueue.

Methods

 o run
 public void run()
Monitor the thread queue. When a thread is added, start it and block until it finishes.

This method is called when the thread is started. It should not be called directly.

Overrides:
run in class Thread
 o addThread
 public synchronized void addThread(Thread t)
Add a thread to this ThreadQueue.

Parameters:
t - The Thread to add.
 o stopThreads
 public synchronized void stopThreads()
Stop the currently running thread and any threads queued to run. Remove all threads from the queue.


All Packages  Class Hierarchy  This Package  Previous  Next  Index