Next Previous Up Top Contents Index

4.6.1 Basic features

wait-for

Open generic function

Summary

Blocks until a synchronization object is available.

Signature

wait-for object #key timeout => success 

Arguments

object
An instance of <synchronization>.

timeout
Time-out interval. If the value is #f (the default), the time-out interval never elapses. Otherwise the value should be a <real>, corresponding to the desired interval in seconds.

Values

success
An instance of <boolean>.

Library

threads

Module

threads

Description

Blocks until a synchronization object is available.

This function is the basic blocking primitive of the Threads library. It blocks until object is available and synchronization can be achieved, or the timeout interval has expired. A non-blocking synchronization may be attempted by specifying a timeout of zero. Individual methods may adjust the state of the synchronization object on synchronization. The function returns #t if synchronization is achieved before the timeout interval elapses; otherwise it returns #f.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index