Re: The behavior of constructors in IPDL
Chris Jones <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Chris Jones wrote: > Benjamin Smedberg wrote: >> I need to have a notification (on ChannelProtocolChild) when the Channel >> object is ready to use, *or* I need the code to accept and queue message >> calls on the Channel before the child routing ID is received and send them >> once the channel is actually ready. >> > > Yes, I see what you're angling at: the async notification is necessary. > The async implementation I hacked in yesterday is insufficient, as > there's not an easy way to discover when the actors are usable. > I reopened https://bugzilla.mozilla.org/show_bug.cgi?id=506075 so that we can fix this broken implementation. >> If both parents and children can create the protocol, a flag bit could be >> used to distinguish between them and avoid races creating routing IDs. >> > > This is a lot of pain for undemonstrated gain. How would notification > that an sync constructor finished not work for you? > Er, s/sync/async/, although I hope that was clear. Cheers, Chris