TMThreadQueue

Kind of class:(package private) class
Package:treemap
Inherits from:none
Version:2.5
Author:Christophe Bouthier [bouthier@loria.fr]
Package classpath:treemap.TMThreadQueue
File last modified:Friday, 28 December 2001, 19:16:04
The TMThreadQueue implements a queue of TMThreadModel to be executed
in a separates thread. With it, we can assure that only one
update or buffer drawing is ocuring at a time.
This class is inspirated of the QueueExecutor of Doug Lea's
util.concurrent package.

Summary


Inner classes
Constructors
Instance methods
  • add
    • Adds a TMThreadModel to the thread queue.
  • restart
    • Starts or restarts the looping thread

Inner classes

Loop

 (package private) (inner) class
The Loop class implements a loop on the queue.

Constructors

TMThreadQueue

(package private) TMThreadQueue(
)

Constructor.

Instance fields

lock

private TMThreadLock lock = null

loop

private Loop loop = null

loopingThread

private Thread loopingThread = null

queue

private Queue queue = null

Instance methods

add

(package private) void add(

Adds a TMThreadModel to the thread queue.
Parameters:
thread:
the thread to add

restart

(package private) void restart(
)

Starts or restarts the looping thread