[ENH] Thread safe Transcript
Michael Rueger
Michael.Rueger.-ND at disney.com
Wed Mar 1 23:05:00 UTC 2000
Change Set: Transcript-safe-mir
Date: 1 March 2000
Author: Michael Rueger, Andreas Raab
Makes the Transcript thread safe.
--
"To improve is to change, to be perfect is to change often."
Winston Churchill
+------------------------------------------------------------+
| Michael Rueger |
| Phone: ++1 (818) 623 3283 Fax: ++1 (818) 623 3559 |
+---------- Michael.Rueger.-ND at corp.go.com ------------------+
-------------- next part --------------
"Change Set: Transcript-safe-mir
Date: 1 March 2000
Author: Michael Rueger, Andreas Raab
Makes the Transcript thread safe.
"!
WriteStream subclass: #TranscriptStream
instanceVariableNames: ''
classVariableNames: 'AccessSema '
poolDictionaries: ''
category: 'Collections-Streams'!
!TranscriptStream methodsFor: 'stream extensions' stamp: 'mir 1/11/2000 11:41'!
endEntry
"Display all the characters since the last endEntry, and reset the stream"
self semaphore critical:[
self changed: #appendEntry.
self reset.
].! !
!TranscriptStream methodsFor: 'private' stamp: 'mir 1/11/2000 11:41'!
semaphore
^AccessSema ifNil:[AccessSema _ Semaphore forMutualExclusion]! !
More information about the Squeak-dev
mailing list
|