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
  • Identity
  • NameGenerator
  • Named
  • 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 lock
    Definition Classes
    threadcso
  • package monitor
    Definition Classes
    threadcso
  • package process
    Definition Classes
    threadcso
  • package semaphore
    Definition Classes
    threadcso

package basis

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)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. basis
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class Identity extends AnyRef

    Implicit class to print thread names and identities

  2. type Milliseconds = Long

    Units of time expressed as milliseconds:

  3. class NameGenerator extends AnyRef

    Systematic generation of names for classes of CSO object.

  4. trait Named [+T] extends AnyRef

    A mixin to support the naming of objects during or after construction.

  5. type Nanoseconds = Long

    Units of time expressed as nanoseconds: (eg) sleep(3*Day+14*Hour)

Value Members

  1. def getPropElse(name: String)(orelse: String): String
  2. def getPropElse[T](name: String, coerce: (String) ⇒ T)(orelse: T): T

    Return coerce(text) for a property specified on the scala command line by -Dname=text.

    Return coerce(text) for a property specified on the scala command line by -Dname=text. If there is no such property then return orelse.

  3. def parkUntilDeadlineOr(blocker: AnyRef, deadline: Nanoseconds, condition: ⇒ Boolean): Nanoseconds

    Wait until deadline for condition to become true.

    Wait until deadline for condition to become true. If it became true before the deadline then the result is the time remaining when it became true. Otherwise the result will be negative, and representing the time after the deadline when deadline expiry was noticed.

    blocker

    the object to be reported as the blocker by debuggers

    deadline

    the deadline in nanoseconds

    condition

    the condition

    returns

    Nanoseconds remaining when the condition became true or when the deadline expired (possibly negative)

    Annotations
    @inline()
  4. def parkUntilElapsedOr(blocker: AnyRef, timeOut: Nanoseconds, condition: ⇒ Boolean): Nanoseconds

    Equivalent to parkUntilDeadline(blocker, timeOut+System.nanoTime, condition)

    Equivalent to parkUntilDeadline(blocker, timeOut+System.nanoTime, condition)

    Annotations
    @inline()

Inherited from AnyRef

Inherited from Any

Ungrouped