Next Previous Up Top Contents Index

4.6.1 Basic features

<synchronization>

Open abstract class

Summary

The class of objects that are used for inter-thread synchronization.

Superclasses

<object>

Init-keywords

name:
An instance of <string>.

Library

threads

Module

threads

Description

The class of objects that are used for inter-thread synchronization.

There is no explicit mechanism in the library to block on a number of synchronization objects simultaneously, until synchronization can be achieved with one of them. This mechanism can be implemented by creating a new thread to wait for each synchronization object, and arranging for each thread to release a notification once synchronization has been achieved.

The name keyword is a string that is used as the synchronization object's name for convenience purposes, such as debugging.

Operations

The class <synchronization> provides the following operations:

wait-for
Block until synchronization can be achieved.

release
Release the object to make it available for synchronization.

synchronization-name

Returns the name of the synchronization object.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index