nsIThread

IID:6be5e380-6886-11d3-9382-00104ba0fd40
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

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

Properties

readonly nsIThread currentThread

PRThreadPriority priority

readonly PRThreadScope scope

readonly PRThreadState state


Methods

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

PRThread* GetPRThread ( )


void init ( nsIRunnable runnable , PRUint32 stackSize , PRThreadPriority priority , PRThreadScope scope , PRThreadState state )

Arguments:
runnable
stackSize
priority
scope
state

void interrupt ( )


void join ( )


void sleep ( PRUint32 msec )

Arguments:
msec

References

This interface is the type of the following properties:

nsIThread.currentThread

This interface is passed as an argument to the following methods:

nsIEventQueueService.createFromIThread

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com