@mozilla.org/thread;1

This component implements the following interfaces:

Constants

PRUint32 nsIThread.PRIORITY_LOW = 0
PRUint32 nsIThread.PRIORITY_NORMAL = 1
PRUint32 nsIThread.PRIORITY_HIGH = 2
PRUint32 nsIThread.PRIORITY_URGENT = 3
PRUint32 nsIThread.SCOPE_LOCAL = 0
PRUint32 nsIThread.SCOPE_GLOBAL = 1
PRUint32 nsIThread.SCOPE_BOUND = 2
PRUint32 nsIThread.STATE_JOINABLE = 0
PRUint32 nsIThread.STATE_UNJOINABLE = 1

Properties

readonly nsIThread nsIThread.currentThread

PRThreadPriority nsIThread.priority

readonly PRThreadScope nsIThread.scope

readonly PRThreadState nsIThread.state

Methods

InterfaceMethod
nsIThread [noscript] PRThread* GetPRThread ( )
nsIThread void init ( nsIRunnable runnable , PRUint32 stackSize , PRThreadPriority priority , PRThreadScope scope , PRThreadState state )
nsIThread void interrupt ( )
nsIThread void join ( )
nsIThread void sleep ( PRUint32 msec )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com