Nille wrote:
Are there any facilities in XPCOM for this?

Yes. Depending on your branch see nsIThreadManager (trunk) or nsIEventQueueService (elsewhere). See also nsIProxyService, depending on what you're doing.

Would I be correct in
assuming that e.g. nsIDOMEventTarget::DispatchEvent would manage
marshalling the call into the appropriate thread?

No. All DOM access MUST happen on the main thread. This includes calls to nsIDOMEventTarget::DispatchEvent.

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

Reply via email to