Open generic function
Sets a lock on a stream.
stream-lock-setter stream lock => lock
<stream>.
<lock>, or #f.
<lock>, or #f.
io
streams
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.