Re: Necko e10s 1st cut design: slow vs premature optimization?

Chris Jones <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Benjamin Smedberg wrote:
> On 12/4/09 10:21 AM, Jason Duell wrote:
>> So all sync msgs will be from the child to the parent ("GetFoo",
>> etc.).  Async notifications like OnDataAvailable should just be queued
>> until the sync GetFoo method is complete, right?  Can you describe the
>> problem you're thinking of a bit more?
> 
> I don't know whether they will be queued. In theory, there could be 
> pending messages when you make the synchronous call, and it would break 
> in-order delivery to process the synchronous response while those 
> messages are pending. But I don't actually know the semantics that are 
> implemented.
> 

Sync messages guarantee no re-entry.  If async messages are sent from 
the parent while it's processing the sync in-msg, they're queued to be 
processed in the child until the sync response is received.  The 
semantics are eminently changeable though, especially since I don't 
think any current protocols do this.

Cheers,
Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.