[scriptable, uuid(6be5e380-6886-11d3-9382-00104ba0fd40)]
interface nsIThread : nsISupports

Constants


          
const PRUint32 PRIORITY_LOW = 0

          
const PRUint32 PRIORITY_NORMAL = 1

          
const PRUint32 PRIORITY_HIGH = 2

          
const PRUint32 PRIORITY_URGENT = 3

          
const PRUint32 SCOPE_LOCAL = 0

          
const PRUint32 SCOPE_GLOBAL = 1

          
const PRUint32 SCOPE_BOUND = 2

          
const PRUint32 STATE_JOINABLE = 0

          
const PRUint32 STATE_UNJOINABLE = 1

Attributes


          
readonly attribute nsIThread currentThread

          
attribute PRThreadPriority priority

          
readonly attribute PRThreadScope scope

          
readonly attribute PRThreadState state

Methods


          
[noscript] PRThread GetPRThread()

          
void init(in nsIRunnable aRunnable, in PRUint32 aStackSize, in PRThreadPriority aPriority, in PRThreadScope aScope, in PRThreadState aState)

          
void interrupt()

          
void join()

          
void sleep(in PRUint32 msec)