Open generic function
Returns the lock for a stream.
stream-lock stream => lock
<stream>.
<lock>, or #f.
io
streams
Returns lock for the specified stream. You can use this function, in conjunction with stream-lock-setter 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.