sisc.modules
Class Threads

java.lang.Object
  extended by sisc.util.Util
      extended by sisc.modules.Threads
All Implemented Interfaces:
Version

public class Threads
extends Util


Nested Class Summary
static class Threads.Complex
          The Complex procedures either have a side effect, or require the interpreter to execute
static class Threads.CondVar
           
static class Threads.Index
           
static class Threads.Mutex
           
static class Threads.Simple
          The Simple procedures are purely functional procedures which do not need to access interpreter registers to execute
 
Field Summary
protected static int CONDVARNEW
           
protected static int CONDVARNOTIFY
           
protected static int CONDVARNOTIFYALL
           
protected static int CONDVARQ
           
protected static Symbol MUTEX
           
protected static int MUTEXLOCK
           
protected static int MUTEXNEW
           
protected static int MUTEXOF
           
protected static int MUTEXQ
           
protected static int MUTEXUNLOCK
           
protected static Symbol S_FINISHED
           
protected static Symbol S_FINISHED_ABNORMALLY
           
protected static Symbol S_READY
           
protected static Symbol S_RUNNING
           
protected static int SETTHREADDAEMON
           
protected static int SETTHREADNAME
           
protected static int SETTHREADPRIORITY
           
protected static Symbol THREADB
           
protected static int THREADCURRENT
           
protected static int THREADDAEMONQ
           
protected static int THREADHOLDSLOCKQ
           
protected static int THREADINTERRUPT
           
protected static int THREADINTERRUPTEDQ
           
protected static int THREADJOIN
           
protected static int THREADNAME
           
protected static int THREADNEW
           
protected static int THREADNOTIFY
           
protected static int THREADNOTIFYALL
           
protected static int THREADPRIORITY
           
protected static int THREADQ
           
protected static int THREADRESULT
           
protected static int THREADSETRESULT
           
protected static int THREADSLEEP
           
protected static int THREADSRUNNING
           
protected static int THREADSTART
           
protected static int THREADSTATE
           
protected static int THREADWAIT
           
protected static int THREADYIELD
           
 
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
Threads()
           
 
Method Summary
static Threads.CondVar condvar(Value o)
           
static Threads.Mutex mutex(Value o)
           
static SchemeThread sthread(Value o)
           
 
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

S_READY

protected static Symbol S_READY

S_RUNNING

protected static Symbol S_RUNNING

S_FINISHED

protected static Symbol S_FINISHED

S_FINISHED_ABNORMALLY

protected static Symbol S_FINISHED_ABNORMALLY

THREADB

protected static final Symbol THREADB

MUTEX

protected static final Symbol MUTEX

THREADNEW

protected static final int THREADNEW
See Also:
Constant Field Values

THREADRESULT

protected static final int THREADRESULT
See Also:
Constant Field Values

THREADSTART

protected static final int THREADSTART
See Also:
Constant Field Values

THREADYIELD

protected static final int THREADYIELD
See Also:
Constant Field Values

THREADSLEEP

protected static final int THREADSLEEP
See Also:
Constant Field Values

THREADINTERRUPT

protected static final int THREADINTERRUPT
See Also:
Constant Field Values

THREADJOIN

protected static final int THREADJOIN
See Also:
Constant Field Values

THREADCURRENT

protected static final int THREADCURRENT
See Also:
Constant Field Values

THREADQ

protected static final int THREADQ
See Also:
Constant Field Values

THREADNOTIFY

protected static final int THREADNOTIFY
See Also:
Constant Field Values

THREADNOTIFYALL

protected static final int THREADNOTIFYALL
See Also:
Constant Field Values

THREADWAIT

protected static final int THREADWAIT
See Also:
Constant Field Values

THREADNAME

protected static final int THREADNAME
See Also:
Constant Field Values

THREADPRIORITY

protected static final int THREADPRIORITY
See Also:
Constant Field Values

THREADDAEMONQ

protected static final int THREADDAEMONQ
See Also:
Constant Field Values

SETTHREADNAME

protected static final int SETTHREADNAME
See Also:
Constant Field Values

SETTHREADPRIORITY

protected static final int SETTHREADPRIORITY
See Also:
Constant Field Values

SETTHREADDAEMON

protected static final int SETTHREADDAEMON
See Also:
Constant Field Values

THREADSTATE

protected static final int THREADSTATE
See Also:
Constant Field Values

THREADINTERRUPTEDQ

protected static final int THREADINTERRUPTEDQ
See Also:
Constant Field Values

THREADHOLDSLOCKQ

protected static final int THREADHOLDSLOCKQ
See Also:
Constant Field Values

THREADSRUNNING

protected static final int THREADSRUNNING
See Also:
Constant Field Values

MUTEXNEW

protected static final int MUTEXNEW
See Also:
Constant Field Values

MUTEXLOCK

protected static final int MUTEXLOCK
See Also:
Constant Field Values

MUTEXUNLOCK

protected static final int MUTEXUNLOCK
See Also:
Constant Field Values

CONDVARNOTIFY

protected static final int CONDVARNOTIFY
See Also:
Constant Field Values

CONDVARNOTIFYALL

protected static final int CONDVARNOTIFYALL
See Also:
Constant Field Values

MUTEXOF

protected static final int MUTEXOF
See Also:
Constant Field Values

MUTEXQ

protected static final int MUTEXQ
See Also:
Constant Field Values

CONDVARQ

protected static final int CONDVARQ
See Also:
Constant Field Values

CONDVARNEW

protected static final int CONDVARNEW
See Also:
Constant Field Values

THREADSETRESULT

protected static final int THREADSETRESULT
See Also:
Constant Field Values
Constructor Detail

Threads

public Threads()
Method Detail

sthread

public static final SchemeThread sthread(Value o)

mutex

public static final Threads.Mutex mutex(Value o)

condvar

public static final Threads.CondVar condvar(Value o)