Next Previous Up Top Contents Index

5.11 The STREAMS module

stream-lock-setter

Open generic function

Summary

Sets a lock on a stream.

Signature

stream-lock-setter stream lock => lock

Arguments

stream
An instance of <stream>.

lock
An instance of <lock>, or #f.

Values

lock
An instance of <lock>, or #f.

Library

io

Module

streams

Description

Sets lock for the specified stream. If lock is #f, then the lock on stream is freed. You can use this function in conjunction with stream-lock to implement a basic stream locking facility. For full details on the <lock> class, see the documentation on the Threads library in the Core Features and Mathematics manual.

See also

stream-lock, page 97


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index