javax.media.j3d
Class TimerThread

java.lang.Object
  extended by java.lang.Thread
      extended by javax.media.j3d.TimerThread
All Implemented Interfaces:
java.lang.Runnable

 class TimerThread
extends java.lang.Thread

The TimerThread is thread that handle WakeupOnElapsedTime call. There is only one thread for the whole system.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  WakeupOnElapsedTimeHeap heap
           
private  WakeupOnElapsedTime inputDeviceSchedCond
           
private static int NOTIFY
           
private  boolean ready
           
private  boolean running
           
private  WakeupOnElapsedTime soundSchedCond
           
private static int STOP
           
private static int WAIT
           
private  boolean waiting
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TimerThread(java.lang.ThreadGroup t)
           
 
Method Summary
(package private)  void add(WakeupOnElapsedTime wakeup)
           
(package private)  void addInputDeviceSchedCond()
           
(package private)  void addSoundSchedCond(long wakeupTime)
           
(package private)  void finish()
           
(package private)  void remove(WakeupOnElapsedTime w)
           
 void run()
           
(package private)  void runMonitor(int action, long waitTime)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WAIT

private static final int WAIT
See Also:
Constant Field Values

NOTIFY

private static final int NOTIFY
See Also:
Constant Field Values

STOP

private static final int STOP
See Also:
Constant Field Values

heap

private WakeupOnElapsedTimeHeap heap

inputDeviceSchedCond

private WakeupOnElapsedTime inputDeviceSchedCond

soundSchedCond

private WakeupOnElapsedTime soundSchedCond

running

private volatile boolean running

waiting

private boolean waiting

ready

private boolean ready
Constructor Detail

TimerThread

TimerThread(java.lang.ThreadGroup t)
Method Detail

add

void add(WakeupOnElapsedTime wakeup)

addInputDeviceSchedCond

void addInputDeviceSchedCond()

addSoundSchedCond

void addSoundSchedCond(long wakeupTime)

finish

void finish()

remove

void remove(WakeupOnElapsedTime w)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

runMonitor

void runMonitor(int action,
                long waitTime)


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.