XPCOM:nsIEventTargetManager
Jump to navigation
Jump to search
Summary
Provide an interface that exposes our event queue system in a freezable and scriptable fashion.
nsIEventTarget abstracts the posting of a PLEvent to a thread event queue. It is currently implemented by nsEventQueue, nsSocketTransportService, and nsIOThreadPool. Most consumers only know how to work with a nsIEventQueue, which is only implemented by the nsEventQueue class.
Proposal
XXX insert details
[scriptable, uuid(...)]
interface nsIEventTargetManager : nsISupports {
void post(in nsIEventTarget target, in nsIRunnable runnable,
in boolean synchronous);
nsIEventTarget getEventTarget(in ACString name);
nsIEventTarget setEventTarget(in ACString name, in nsIEventTarget);
};