nsIThreadManager
| IID: | 056216f5-8803-46b4-9199-d95bc1f0446f |
| Inherits From: | nsISupports |
An interface for creating and locating nsIThread instances.
Properties
readonly nsIThread currentThread
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.
readonly PRBool isMainThread
This attribute is true if the calling thread is the main thread of the application process.
readonly nsIThread mainThread
Get the main thread.
Methods
[noscript] nsIThread getThreadFromPRThread ( PRThread* prthread )
nsIThread newThread ( PRUint32 creationFlags )
nsIThread getThreadFromPRThread ( PRThread* prthread )
Get the nsIThread object (if any) corresponding to the given PRThread. This method returns null if there is no corresponding nsIThread.
- Arguments:
- prthread: The PRThread of the nsIThread being requested.
nsIThread newThread ( PRUint32 creationFlags )
Create a new thread (a global, user PRThread).
- Arguments:
- creationFlags: Reserved for future use. Pass 0.
Reference documentation is generated from Mozilla's source.
