Overview   Namespace   Class   Index   Help 
PUBLIC MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA
PROTECTED MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA
PRIVATE MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA

:: osl ::

class Thread


Base Classes
None.
Known Derived Classes
None.

virtual abstract interface template
YES YES YES NO
Summary
The Thread class is a c++ wrapper for the C thread API.
File
thread.hxx

Public Members

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.

Protected Members

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.

Private Members

Methods


Thread( const Thread & );
Thread &
operator=( const Thread & );

Data

oslThread m_hThread;

Top of Page