#7045 NORM Never A: TimesRepeat tile blocks the whole etoy environment
Zarro Boogs per Child
bugtracker at laptop.org
Wed May 21 09:51:49 EDT 2008
#7045: TimesRepeat tile blocks the whole etoy environment
-----------------------------+----------------------------------------------
Reporter: karl | Owner: etoys
Type: enhancement | Status: new
Priority: normal | Milestone: Never Assigned
Component: etoys-activity | Version: Update.1
Resolution: | Keywords:
Verified: 0 | Blocking:
Blockedby: |
-----------------------------+----------------------------------------------
Comment(by karl):
Replying to [comment:3 bert]:
> One could terminate a script if it takes longer than x seconds to
execute:
>
> sema := Semaphore new.[[BR]]
> script := [result := self doScript. watchdog terminate. sema signal]
newProcess.[[BR]]
> watchdog := [(Delay forSeconds: 1) wait. script terminate. sema
signal] forkAt: Processor activePriority+1.[[BR]]
> script resume.[[BR]]
> sema wait.[[BR]]
> !^result[[BR]]
>
> We could possibly ask the user if the script should be terminated or be
allowed to continue for x more seconds.
>
> In the case of the repeat tile, it would be preferable to terminate the
loop only when it finished a cycle (rather than by termianting it) - it
could have a flag that is tested in each cycle which is set after n
seconds from a watchdog like the above.
Yes, because the current situation is not nice when a times repeat script
is accidentally set to ticking
--
Ticket URL: <http://dev.laptop.org/ticket/7045#comment:4>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list