Packages

  • package root
    Definition Classes
    root
  • package io

    This is the documentation for the ThreadCSO Library.

    This is the documentation for the ThreadCSO Library. Notable packages include:

    Definition Classes
    root
  • package threadcso

    The standard threadCSO API.

    The standard threadCSO API. Most modules using CSO will need only the declaration:

    import io.threadcso._

    The present version of the ThreadCSO library API is 1.2Rr (for some number r)

    The revision number (Rr) will change if bugs are corrected but the code remains consistent with the previous API. Its minor version number will change if there is a correction to the code that breaks consistency with the previous API. Its major version will change if there is a substantial change in the semantics of an important CSO construct.

    August 2017: changes 1.1 => 1.2

    • renaming of very many internal classes and packages
    • basic channel implementations are more efficient, in some case much more so
    • alternation reliability improved
    • debugger registration of alternations is no longer needed
    • home-grown semaphores can specify which component they are part of: this makes interpreting a stack backtrace very much easier
    • there is a flexible logging system that is compatible with the debugger

    April 2016: changes 1.0 => 1.1

    • Extended rendezvous read operator is now ?? (was ?)
    • Extended rendezvous read event notation is now =??=> (was =?=>>)
    • The notation inport ? f is now equivalent to f(inport?()) This makes for a tidier layout when the function f is an explicit functional expression.

    Feb 1 2017: changes 1.1R1 => 1.1R2

    • Removed dependencies on deprecated Java->Scala functions: replaced with .asJava
    @author Bernard Sufrin, Oxford
    $Revision: 286 $
    $Date: 2017-11-18 17:41:30 +0000 (Sat, 18 Nov 2017) $
    Definition Classes
    io
  • package alternation
    Definition Classes
    threadcso
  • package basis

    A home for types that are needed more or less pervasively.

    A home for types that are needed more or less pervasively.

    @author Bernard Sufrin, Oxford
    $Revision: 228 $
    $Date: 2016-03-04 16:11:56 +0000 (Fri, 04 Mar 2016)
    Definition Classes
    threadcso
  • package channel

    Specifies primitive (non-alternation-capable) ports and channels; and implements several channel types.

    Specifies primitive (non-alternation-capable) ports and channels; and implements several channel types.

    Definition Classes
    threadcso
  • package component

    A collection of several process-generators that (mostly) yield processes to work on (or produce) finite or infinite streams of values presented as channel.

    A collection of several process-generators that (mostly) yield processes to work on (or produce) finite or infinite streams of values presented as channel. All are designed to terminate cleanly -- 'i.e.' to closeIn or closeOut all the channel.that they communicate on in the appropriate direction for the type of port.

    Some of these components were inspired by (or copied from) components from the Plug'n'Play collection of JCSP (without necessarily retaining the P'n'P names).

    @version 03.20120824
    @author Bernard Sufrin, Oxford
    $Revision: 247 $
    $Date: 2017-10-20 15:00:00 +0100 (Fri, 20 Oct 2017) $
    Definition Classes
    threadcso
  • package debug
    Definition Classes
    threadcso
  • package REGISTRY

    This object serves as a registry for (live) objects that the debugger interface may be interested in.

  • DEBUGGER
  • Logger
  • Logging
  • package lock
    Definition Classes
    threadcso
  • package monitor
    Definition Classes
    threadcso
  • package process
    Definition Classes
    threadcso
  • package semaphore
    Definition Classes
    threadcso

package debug

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. class DEBUGGER extends AnyRef

    A simple server that responds to browser requests with a description of the state of active CSO threads, open channel, and monitored values/expressions.

    A simple server that responds to browser requests with a description of the state of active CSO threads, open channel, and monitored values/expressions.

    To ensure that the server is loaded and started it is necessary for code of the following spirit to be executed on program startup.

    val debugger = new io.threadcso.DEBUGGER(<some port number>)

    See also the definition of io.threadcso.debugger for an account of how this is usually done automatically (with a randomly-allocated free port number). This is essentially by mentioning the lazy variable io.threadcso.debugger. For example, the following code prints an announcement that the debugger is running

    import io.threadcso._
               ...
               if (debugging) println(debugger)

    in the form: Debugger(http://localhost:64601) -- which a browser can easily be pointed at.

  2. class Logger extends debug.REGISTRY.Debuggable

    A component to support the recording of logging information from CSO programs.

    A component to support the recording of logging information from CSO programs. See io.threadcso.debug.Logging for an example of how an elidable log can be specialized; and io.threadcso.alternation.Run for a typical use.

Value Members

  1. object Logger

    Just import io.threadcso.debug.Logger if you wish to construct logs and make log entries.

  2. object Logging

    A component to support high-resolution logging within the CSO implementation.

    A component to support high-resolution logging within the CSO implementation.

    Methods are effective only when compiled without eliding FINEST.

    Production versions of the threadCSO jar normally elide these features.

    Debugging detail is controlled by the integer JVM property io.threadcso.logging. its bits are interpreted as boolean switches.

    The log keeps the most recent logSize logging messages, set by the integer JVM property: io.threadcso.logsize.

    @author Bernard Sufrin, Oxford
    $Revision: 213 $
    $Date: 2017-09-30 16:27:58 +0100 (Sat, 30 Sep 2017) $
    Annotations
    @elidable( FINEST )

Ungrouped