Threads have a built-in event queue, and a thread is an event target that can receive nsIRunnable objects (events) to be processed on the thread.
See nsIThreadManager for the API used to create and locate threads.
Public Member Functions
|void||dispatch (in nsIRunnable event, in unsigned long flags)|
|boolean||processNextEvent (in boolean mayWait)|
|NS_IMETHOD_ (nsrefcnt) Release(void)=0|
|NS_IMETHOD_ (nsrefcnt) AddRef(void)=0|
|NS_IMETHOD||QueryInterface (REFNSIID aIID, void **aInstancePtr)=0|
|const unsigned long||DISPATCH_NORMAL = 0|
|const unsigned long||DISPATCH_SYNC = 1|
|readonly attribute PRThread||PRThread|