Nille wrote:
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.

No, all the nsIDOM* interfaces are really only meant to be used on the main thread and therefore do not do any marshalling.

Use nsIProxyObjectEventManager: http://www.mozilla.org/projects/xpcom/Proxies.html (but note that these interfaces have changed a bit on trunk (that is, for Gecko 1.9/Firefox 3/SeaMonkey 1.5))

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to