Methods of Class Thread
-
Thread
- Thread(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
-
operator=
- Thread & operator=(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
-
Thread
- Thread();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
-
~Thread
- virtual ~Thread();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
YES |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Destroyes the thread.
- See Also
- osl_destroyThread
-
create
- sal_Bool create();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Creates a thread.
- Description
- In order to create a thread one has to supply a class that inherits this Thread class
and one has to provide an implementations for the run function. When create is called
then the run function is executed.
- See Also
- osl_createThread
osl_createSuspendedThread
-
createSuspended
- sal_Bool createSuspended();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Creates a thread that is suspended.
- Description
- To run the thread one has to call resume.
- See Also
- osl_createSuspendedThread
-
suspend
- virtual void suspend();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
YES |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Suspends the thread.
- See Also
- osl_suspendThread
-
resume
- virtual void resume();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
YES |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Puts the thread in a running state if it is currently suspended.
- See Also
- osl_resumeThread
-
terminate
- virtual void terminate();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
YES |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Terminates the thread.
- See Also
- osl_terminateThread
-
join
- virtual void join();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
YES |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- See Also
- osl_joinWithThread
-
isRunning
- sal_Bool isRunning();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Determines if this thread is running or not.
- Return
- true, if thread is running, false otherwise.
- See Also
- osl_isThreadRunning
-
setPriority
- void setPriority(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Sets the priority of this thread.
- See Also
- osl_setThreadPriority
-
getPriority
- oslThreadPriority getPriority();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Returns the priority of this thread.
- See Also
- osl_getThreadPriority
-
getIdentifier
- oslThreadIdentifier getIdentifier();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Returns the identifier this thread.
- See Also
- osl_getThreadIdentifier
-
schedule
- virtual sal_Bool schedule();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
YES |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- See Also
- osl_scheduleThread
-
operator oslThread
- operator oslThread();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Extractor (or cast operator) for the thread handle.
-
run
- virtual void run() = 0;
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
YES |
YES |
NO |
NO |
NO |
NO |
NO |
NO |
- Summary
- The run function is run automatically after create has been called.
- Description
- run has to be provided by the class that inherits the Thread class.
Put all code that has to be performed by the thread into this function.
-
onTerminated
- virtual void onTerminated();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
YES |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Notifies the instance of this class that the termination of this
thread is imminent.
- Description
- In order to process this notification one has to override this
function.
-
operator new
- static void * operator new(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
YES |
YES |
NO |
-
operator delete
- static void operator delete(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
YES |
YES |
NO |
-
operator new
- static void * operator new(
size_t |
, |
void * |
pMem ) throw(); |
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
YES |
YES |
NO |
-
operator delete
- static void operator delete(
void * |
, |
void * |
) throw(); |
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
YES |
YES |
NO |
-
getCurrentIdentifier
- static oslThreadIdentifier getCurrentIdentifier();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
YES |
YES |
NO |
- Summary
- Returns the identifier of the current thread.
- See Also
- osl_getThreadIdentifier
-
wait
- static void wait(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
YES |
YES |
NO |
- Summary
- Blocks the current thread for the specified amount of time.
- See Also
- osl_waitThread
-
yield
- static void yield();
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
YES |
YES |
NO |
- Summary
- Has the operating system to run another thread and put this thread into
suspended state until it is being scheduled again.
- See Also
- osl_yieldThread
Top of Page
Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.