Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

nsIThread Interface Reference

import "nsIThread.idl";

Inheritance diagram for nsIThread:

nsISupports nsIThreadInternal

List of all members.


Detailed Description

This interface provides a high-level abstraction for an operating system thread.

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.

Definition at line 53 of file nsIThread.idl.


Public Member Functions

void dispatch (in nsIRunnable event, in unsigned long flags)
boolean hasPendingEvents ()
boolean isOnCurrentThread ()
boolean processNextEvent (in boolean mayWait)
void shutdown ()
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

const unsigned long DISPATCH_NORMAL = 0
const unsigned long DISPATCH_SYNC = 1
readonly attribute PRThread PRThread

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index