Package org.jmol.thread
Class SpinThread
java.lang.Object
java.lang.Thread
org.jmol.thread.JmolThread
org.jmol.thread.SpinThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class org.jmol.thread.JmolThread
CHECK1, CHECK2, CHECK3, currentTime, eval, FINISH, haveReference, hoverEnabled, INIT, isJS, isReset, lastRepaintTime, MAIN, name, sc, sleepTime, startTime, stopped, targetTime, useTimeout, vwr
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
run1
(int mode) Java: run1(INIT) while(!interrupted()) { run1(MAIN) } run1(FINISH) JavaScript: run1(INIT) run1(MAIN) --> setTimeout to run1(CHECK) or run1(FINISH) and return run1(CHECK) --> setTimeout to run1(CHECK) or run1(MAIN) or run1(FINISH) and returnint
setManager
(Object manager, Viewer vwr, Object params) Methods inherited from class org.jmol.thread.JmolThread
checkInterrupted, interrupt, oops, reset, resumeEval, run, runSleep, setEval, setViewer, start, toString
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, startVirtualThread, stop, suspend, threadId, yield
-
Constructor Details
-
SpinThread
public SpinThread()
-
-
Method Details
-
setManager
- Overrides:
setManager
in classJmolThread
- Parameters:
manager
-vwr
-params
-- Returns:
- TODO
-
run1
Java: run1(INIT) while(!interrupted()) { run1(MAIN) } run1(FINISH) JavaScript: run1(INIT) run1(MAIN) --> setTimeout to run1(CHECK) or run1(FINISH) and return run1(CHECK) --> setTimeout to run1(CHECK) or run1(MAIN) or run1(FINISH) and return- Specified by:
run1
in classJmolThread
- Throws:
InterruptedException
-