On Fri, Aug 29, 2014 at 12:56 PM, Cameron Zwarich <zwar...@mozilla.com> wrote:
> Is it strictly enforced that the script task never sees inconsistent views > of layout? This came up in the other thread about threading, but what > prevents this incorrect scenario? > > 1) The script task takes the mutex to access one property of layout. > 2) The script task releases the mutex. > 3) Layout changes the property that was accessed. > 4) The script task takes the mutex again to access the same property, in > the same turn of the event loop without modifying layout in any intervening > work since the last attempt. > 5) The script task reads a different value from before. > I'm confused. Before or during step 1, the layout must be brought up to date (flushed, in Gecko parlance). So step 3 shouldn't happen since layout would already be fully up to date. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o o‘oRoaocoao,o’o oioso oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo owohooo osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro ooofo otohoeo ofoioroeo ooofo ohoeololo. _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo