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.

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.

Copyright © 1999-2006 XULPlanet.com