<br><br>On Monday, Bob Arning wrote:<br><br>&gt; If you look at: WorldState&gt;&gt;triggerAlarmsBefore:, you see the claim:<br>&gt;<br>&gt; &quot;Trigger all pending alarms that are to be executed before nowTime.&quot;<br>
&gt;<br>&gt; when, in fact, it triggers one at most:<br>&gt;<br>&gt;     triggered := OrderedCollection new.<br>&gt;     self lockAlarmsDuring: [:pending |<br>&gt;         (pending isEmpty not and: [pending first scheduledTime &lt; nowTime])<br>
&gt;             ifTrue: [triggered add: pending removeFirst]].<br>&gt;     triggered do: [:alarm | alarm value: nowTime].<br>&gt;<br>&gt; makes me want to<br>&gt;<br>&gt; Smalltalk destroyAllComments ;-)<br>&gt;<br>&gt; Cheers,<br>
&gt; Bob<br><br>Whoops! That ifTrue: should be whileTrue:<br><br>John<br><br><br>&gt;<br>&gt; On 8/19/13 5:56 AM, Marcel Taeumel wrote:<br>&gt;<br>&gt; Hi! :)<br>&gt;<br>&gt; One point against blocking the event loop: You never know who will call<br>
&gt; #flash as it is public API. It is not guaranteed that the flashing morph is<br>&gt; &quot;visible&quot; at all and not occluded by some other morph. Then, strange short<br>&gt; image freezes will be noticed.<br>&gt;<br>
&gt; On 8/19/13 6:07 AM, Marcel Taeumel wrote:<br>&gt;<br>&gt; Here a better version:<br>&gt;<br>&gt;  (self valueOfProperty: #colorBeforeFlashing ifAbsent: [self color])<br>&gt;     in: [:c |<br>&gt;       self setProperty: #colorBeforeFlashing toValue: c.<br>
&gt;       self color: ((c ifNil: [Color white]) alpha: 1) negated.<br>&gt;       ActiveWorld displayWorldSafely.<br>&gt;                 <br>&gt;       self<br>&gt;         removeAlarm: #color:;<br>&gt;         removeAlarm: #removeProperty:.<br>
&gt;       self<br>&gt;         addAlarm: #color: with: c after: 100;<br>&gt;         addAlarm: #removeProperty: with: #colorBeforeFlashing after: 100]. <br>&gt;<br>&gt; I am not exactly sure, why an explicit call to the render loop is needed...<br>
&gt; But this way, it works without blocking the event loop. This &quot;ActiveWorld<br>&gt; displayWorldSafely&quot; is still annoying...<br>&gt;<br>&gt; Best,<br>&gt; Marcel<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; View this message in context: <a href="http://forum.world.st/computers-too-fast-these-days-tp4704067p4704117.html">http://forum.world.st/computers-too-fast-these-days-tp4704067p4704117.html</a><br>
&gt; Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br><br>-- <br><a href="http://jmck.seasidehosting.st" target="_blank">jmck.seasidehosting.st</a><br>