<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi Jaromir,<div><br></div><div><span style="font-size: 13.3333px">please take a look at Collections-mt.923 (inbox). Maybe those changes would satisfy all your current needs in this regard. :-)</span><br></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">@all: Would Transcript now be thread-safe? Did I miss something?</span></div><div><span style="font-size: 13.3333px"><br></span></div><div>Best,<br></div><div><span style="font-size: 13.3333px">Marcel</span></div><div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color: #AAAAAA; margin-top: 10px;">Am 25.01.2021 21:38:36 schrieb jaromir <m@jaromir.net>:</p><div style="font-family:Arial,Helvetica,sans-serif">Well, I tried deferring the whole Transcript endEntry machinery to the UI<br>doOneCycle (bypassing the changed: #appendEntryLater mechanism) for<br>#forceUpdate = false only ... and it seems to avoid the problem!<br><br>TranscriptStream >> endEntry<br><br> deferredEntry ifNil: [ false ]. "this is a new instance variable"<br> self semaphore critical:[<br> self class forceUpdate<br> ifTrue: [self changed: #appendEntry; reset]<br> ifFalse: [deferredEntry := true].<br><br><br>TranscriptStream >> flushDeferredEntry<br> "This is run every UI cycle in doOneCycleNowFor:"<br><br> deferredEntry ifTrue: [<br> self class forceUpdate: true.<br> self endEntry.<br> deferredEntry := false.<br> self class forceUpdate: false.<br> ]<br><br>doOneCycleNowFor: aWorld<br> <br> "... the whole body remains unchanged except:"<br> <br> capturingGesture ifFalse: <br> [aWorld runStepMethods. <br> Transcript flushDeferredEntry. "this is printing for #forceUpdate =<br>false"<br> self displayWorldSafely: aWorld].<br><br><br>For #forceUpdate = true the endEntry mechanism remains unchanged and failing<br>as before...<br><br><br><br>--<br>Sent from: http://forum.world.st/Squeak-Dev-f45488.html<br><br></div></blockquote></div>