sisc.interpreter
Class ThreadContext

java.lang.Object
  extended by sisc.util.Util
      extended by sisc.interpreter.ThreadContext
All Implemented Interfaces:
Version

public class ThreadContext
extends Util


Nested Class Summary
static class ThreadContext.State
           
 
Field Summary
 java.lang.ref.WeakReference hostThread
           
 boolean interrupt
           
protected  java.util.Random r
           
protected  java.util.Stack states
           
 long unicityMajor
           
 char unicityMinor
           
 
Fields inherited from class sisc.util.Util
BACKQUOTE, BEGIN, bundles, caseSensitive, EMPTYLIST, EMPTYVEC, EOF, ERRORK, EVAL, EXPSC, EXPTOP, FALSE, FCONT, FIVE, JEXCEPTION, LAMBDA, LOCATION, maxFloatPrecision, MESSAGE, minFloatPrecision, NAME, OTHER, PARENT, permitInterrupts, QUOTE, QUOTESYM, REPORT, SETBANG, SISC, SISC_SPECIFIC, SISCB, SOURCE_COLUMN, SOURCE_FILE, SOURCE_LINE, SYMENV, THIS, TOPLEVEL, TRUE, UNQUOTE, UNQUOTE_SPLICING, VOID, ZV
 
Fields inherited from interface sisc.util.Version
VERSION
 
Constructor Summary
ThreadContext()
           
 
Method Summary
 Interpreter currentInterpreter()
          state stack maintenance
 Interpreter currentInterpreter(AppContext ctx)
           
protected  long genUnicityMajor()
          Unique Value Support
 java.lang.Thread nativeThread()
           
 long nextUnique()
           
protected  ThreadContext.State popState()
           
protected  void pushState(ThreadContext.State s)
           
 void setHostThread(DynamicEnvironment dynenv, java.lang.Thread thread)
           
 
Methods inherited from class sisc.util.Util
annotated, annotatedAppEval, append, argCheck, argsToSymbols, assq, bininport, bininstream, binoutport, binoutstream, box, character, charinport, charinreader, charoutport, charoutwriter, charsetFromString, chr, cont, currentClassLoader, env, error, error, error, error, error, error, error, expr, getDefaultCharacterSet, immutablePair, immutableVector, inport, javaExceptionToString, javaWrap, justify, length, liMessage, liMessage, liMessage, liMessage, liMessage, liMessage, liMessage, list, list, list, list, list, makeURL, mapcar, memq, nlib, num, outport, pair, pairToExpressions, pairToExpVect, pairToValues, proc, read, registerBundle, reverse, reverseInPlace, simpleErrorToString, sourceAnnotations, str, string, sym, symbol, symval, truePair, truth, truth, typeError, typeError, updateName, url, url, url, valArrayToList, valArrayToList, valArrayToVec, vec, warn, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

states

protected java.util.Stack states

r

protected java.util.Random r

hostThread

public java.lang.ref.WeakReference hostThread

interrupt

public boolean interrupt

unicityMajor

public long unicityMajor

unicityMinor

public char unicityMinor
Constructor Detail

ThreadContext

public ThreadContext()
Method Detail

genUnicityMajor

protected long genUnicityMajor()
Unique Value Support


nextUnique

public long nextUnique()

currentInterpreter

public Interpreter currentInterpreter()
state stack maintenance


currentInterpreter

public Interpreter currentInterpreter(AppContext ctx)

pushState

protected void pushState(ThreadContext.State s)

popState

protected ThreadContext.State popState()

nativeThread

public java.lang.Thread nativeThread()

setHostThread

public void setHostThread(DynamicEnvironment dynenv,
                          java.lang.Thread thread)