Thread-safe TranscriptStream?
Michael Lucas-Smith
ich at driftwood.darktech.org
Tue Aug 15 23:10:22 UTC 2000
jchludzinski at worldkey.net wrote:
> It appears that the necessary modifications to TranscriptStream to
> support thread-safe writes to Transcript have NOT been placed in
> the latest release! This should OBVIOUSLY be done:
>
> endEntry
> self semaphore critical:[
> self changed: #appendEntry.
> self reset.
> ].
>
> semaphore
> ^AccessSema ifNil:[
> AccessSema _ Semaphore forMutualExclusion
> ]
>
> ---John
Why not make a thread-safe Stream subclass and subclass TranscriptScream
off that?
Michael.
More information about the Squeak-dev
mailing list
|