Hi, and thanks for verifying this! Are there any facilities in XPCOM for this? Would I be correct in assuming that e.g. nsIDOMEventTarget::DispatchEvent would manage marshalling the call into the appropriate thread? If so, I'll migrate to that instead of using observers.
Regards, Nille Benjamin Smedberg wrote: > Nille wrote: > > > Are there any rules in particular that pertains to threading in XPCOM > > or to Firefox extensions? I've looked around, but can see any clear > > definitions as one does in e.g. Microsoft COM. Any idea why it hangs? > > In general, most mozilla components are designed to be used only from the > main thread. If you are receiving notifications from another thread, you > should proxy those notification back to the main thread before you work on > them (this is how the networking code works, for example). > > --BDS _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
