WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/thread;1

This component implements the following interfaces:

Constants

This flag specifies the default mode of event dispatch, whereby the event is simply queued for later processing. When this flag is specified, dispatch returns immediately after the event is queued.
PRUint32 nsIEventTarget.DISPATCH_NORMAL = 0
This flag specifies the synchronous mode of event dispatch, in which the dispatch method does not return until the event has been processed.

NOTE: passing this flag to dispatch may have the side-effect of causing other events on the current thread to be processed while waiting for the given event to be processed.

PRUint32 nsIEventTarget.DISPATCH_SYNC = 1

Properties

readonly PRThread* nsIThread.PRThread

Methods

InterfaceMethod
nsIEventTarget void dispatch ( nsIRunnable event , PRUint32 flags )
nsIThread PRBool hasPendingEvents ( )
nsIEventTarget PRBool isOnCurrentThread ( )
nsIThread PRBool processNextEvent ( PRBool mayWait )
nsIThread void shutdown ( )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com