| Allegro CL version 10.0 Unrevised from 9.0 to 10.0. 9.0 version |
Arguments: stream abort
Called by close as its
implementation. An around method first clears the output-buffer of the
stream using either force-output (if abort is nil
) or clear-output (if abort is t) The primary method
then actually breaks the connection with the device, and the around
method sets any external file or window handles or descriptors in the
stream object to nil
, to ensure that they are
never used again due to this stream, and also marks the stream as
closed, so that CL data-movement stream functions such as read-byte/read-char and write-byte/write-char cannot proceed on the now-closed
stream.
device-close must always succeed (i.e. it must never return a failure code or call error), and it cannot take excessive time to perform its job. If it fails to break the connection within a clock tick or some reasonably small time, it gives up and returns with no further action. Leakage of file descriptor or window handles is possible in this case.
In addition to the described around method:
simple-stream
:
returns t
.
See streams.htm for information on the simple-streams implementation in Allegro CL. The older but still supported Gray streams implementation is described in gray-streams.htm.
Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 9.0 page.
Created 2015.5.21.
| Allegro CL version 10.0 Unrevised from 9.0 to 10.0. 9.0 version |