|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
com.planeth.common.timing.TimedObjectThread
Thread with a predefined min frameTime
If the thread goes faster than the defined frameTime,
it waits until the frametime is reached.
IThreadControllable| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
TimedObjectThread(IThreadControllable threadControllable)
Constructor for TimedObjectThread. |
|
TimedObjectThread(IThreadControllable threadControllable,
int preferredFrameTime)
Constructor for TimedObjectThread. |
|
| Method Summary | |
static int |
getActiveThreadCount()
Returns the complete number of TimedObjectThreads existing |
void |
run()
|
void |
safeStop()
Triggers a safe stop of the Thread. |
static void |
terminateAllThreads()
Termitates all TimedObjectThreads (safeStop) |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
| Constructor Detail |
public TimedObjectThread(IThreadControllable threadControllable)
threadControllable - the IThreadControllable to be controlled by the Thread
public TimedObjectThread(IThreadControllable threadControllable,
int preferredFrameTime)
threadControllable - the IThreadControllable to be controlled by the ThreadpreferredFrameTime - the min frameTime for the Thread| Method Detail |
public static int getActiveThreadCount()
public static void terminateAllThreads()
public void safeStop()
public void run()
Runnable.run()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||