W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2013

Re: revised mainEventLoop

From: David Junger <tffy@free.fr>
Date: Fri, 8 Mar 2013 11:12:32 +0100
Cc: "www-voice@w3.org" <www-voice@w3.org>
Message-Id: <47EF0F19-FAE7-4DB4-916A-A6624C24D827@free.fr>
To: Jim Barnett <Jim.Barnett@genesyslab.com>
Le 21 feb 2013 à 16:27, Jim Barnett a écrit :

>         # Here we handle eventless transitions and transitions
>         # triggered by internal events until macrostep is complete
>         while running and not macrostepDone:
>             enabledTransitions = selectEventlessTransitions()
>             if enabledTransitions.isEmpty():
>                 if internalQueue.isEmpty():
>                     macrostepDone = true
>                 else:
>                     internalEvent = internalQueue.dequeue()
>                     datamodel["_event"] = internalEvent
>                     enabledTransitions = selectTransitions(internalEvent)
>             if not enabledTransitions.isEmpty():
>                 microstep(enabledTransitions.toList())

If I read it right, it means that eventless transitions are tested every time we dequeue an internal event. The only reason to do that would be if you had eventless transitions testing the contents of _event, which would be kind of hypocritical for "eventless" transitions. If that's not intented (and the fact that external events don't do that suggests it is not), then we should test eventless transitions just once, and then ignore those while consuming internal events.

Received on Friday, 8 March 2013 10:13:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:43 UTC