| Overview | Namespace | Class | Index | Help |
| PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
| PROTECTED MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
| PRIVATE MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
| virtual | abstract | interface | template |
| YES | YES | YES | NO |
Methods |
|
| Thread( ); |
|
| virtual ~Thread( ); |
Destroyes the thread. |
| sal_Bool create( ); |
Creates a thread. |
| sal_Bool createSuspended( ); |
Creates a thread that is suspended. |
| virtual void suspend( ); |
Suspends the thread. |
| virtual void resume( ); |
Puts the thread in a running state if it is currently suspended. |
| virtual void terminate( ); |
Terminates the thread. |
| virtual void join( ); |
|
| sal_Bool isRunning( ); |
Determines if this thread is running or not. |
| void setPriority( oslThreadPriority Priority ); |
Sets the priority of this thread. |
| oslThreadPriority getPriority( ); |
Returns the priority of this thread. |
| oslThreadIdentifier getIdentifier( ) const; |
Returns the identifier this thread. |
| virtual sal_Bool schedule( ); |
|
| operator oslThread( ) const; |
Extractor (or cast operator) for the thread handle. |
Static Methods |
|
| static void * operator new( size_t nSize ) throw( ); |
|
| static void operator delete( void * pMem ) throw( ); |
|
| static void * operator new( size_t , void * pMem ) throw( ); |
|
| static void operator delete( void * , void * ) throw( ); |
|
| static oslThreadIdentifier getCurrentIdentifier( ); |
Returns the identifier of the current thread. |
| static void wait( const TimeValue & Delay ); |
Blocks the current thread for the specified amount of time. |
| static void yield( ); |
Has the operating system to run another thread and put this thread into suspended state until it is being scheduled again. |
Methods |
|
| virtual void run( ) = 0; |
The run function is run automatically after create has been called. |
| virtual void onTerminated( ); |
Notifies the instance of this class that the termination of this thread is imminent. |
Methods |
|
| Thread( const Thread & ); |
|
| Thread & operator=( const Thread & ); |
|
Data |
|
| oslThread m_hThread; | |
Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.