W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] Race condition in media load algorithm

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 2 Aug 2010 19:11:53 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1008021910090.3056@ps20323.dreamhostps.com>
On Mon, 2 Aug 2010, Boris Zbarsky wrote:
> So the model is that there are asynchronous tasks but there are also 
> things that run after the "current asynchronous task" finishes?

It's a little more detailed than that, but yes, that describes the event 
loop model.

> How are we defining "current asynchronous task" and "finish"?

In terms of the event loop algorithm:


> How does this setup handle cases when the "current asynchronous task" 
> spins the event loop, if at all?

The spinning of the event loop is also defined in terms of the event loop 
in a manner that strictly defines this:


Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 2 August 2010 12:11:53 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:25 UTC