An interface for creating and locating nsIThread instances.
Create a new thread (a global, user PRThread).
creationFlags | Reserved for future use. Pass 0. |
stackSize | Number of bytes to reserve for the thread's stack. |
The newly created nsIThread object. |
Get the nsIThread object (if any) corresponding to the given PRThread.
This method returns null if there is no corresponding nsIThread.
prthread | The PRThread of the nsIThread being requested. |
The nsIThread object corresponding to the given PRThread or null if no such nsIThread exists. |
Get the main thread.
Get the current thread. If the calling thread does not already have a
nsIThread associated with it, then a new nsIThread will be created and
associated with the current PRThread.
This attribute is true if the calling thread is the main thread of the
application process.
Default number of bytes reserved for a thread’s stack, if no stack size
is specified in newThread(). 0 means use platform default.