UDK 3.2.7 C/C++ API Reference
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
osl::Thread Class Reference

A thread abstraction. More...

#include <thread.hxx>

Inheritance diagram for osl::Thread:
salhelper::Thread

List of all members.

Public Member Functions

 Thread ()
virtual ~Thread ()
sal_Bool create ()
sal_Bool createSuspended ()
virtual void suspend ()
virtual void resume ()
virtual void terminate ()
virtual void join ()
sal_Bool isRunning () const
void setPriority (oslThreadPriority Priority)
oslThreadPriority getPriority () const
oslThreadIdentifier getIdentifier () const
virtual sal_Bool schedule ()
 operator oslThread () const

Static Public Member Functions

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 ()
static void wait (const TimeValue &Delay)
static void yield ()
static void setName (char const *name) throw ()

Protected Member Functions

virtual void run ()=0
virtual void onTerminated ()

Friends

void threadFunc (void *param)
 The thread functions calls the protected functions run and onTerminated.

Detailed Description

A thread abstraction.

Deprecated:
use salhelper::Thread instead. Only the static member functions osl::Thread::getCurrentIdentifier, osl::Thread::wait, and osl::Thread::yield are not deprecated.

Constructor & Destructor Documentation

osl::Thread::Thread ( ) [inline]
virtual osl::Thread::~Thread ( ) [inline, virtual]

Reimplemented in salhelper::Thread.


Member Function Documentation

sal_Bool osl::Thread::create ( ) [inline]
sal_Bool osl::Thread::createSuspended ( ) [inline]
static oslThreadIdentifier osl::Thread::getCurrentIdentifier ( ) [inline, static]
oslThreadIdentifier osl::Thread::getIdentifier ( ) const [inline]
oslThreadPriority osl::Thread::getPriority ( ) const [inline]
sal_Bool osl::Thread::isRunning ( ) const [inline]
virtual void osl::Thread::join ( ) [inline, virtual]
virtual void osl::Thread::onTerminated ( ) [inline, protected, virtual]
static void osl::Thread::operator delete ( void *  ,
void *   
) throw () [inline, static]
static void osl::Thread::operator delete ( void *  pMem) throw () [inline, static]

Reimplemented in salhelper::Thread.

static void* osl::Thread::operator new ( size_t  nSize) throw () [inline, static]
static void* osl::Thread::operator new ( size_t  ,
void *  pMem 
) throw () [inline, static]
osl::Thread::operator oslThread ( ) const [inline]
virtual void osl::Thread::resume ( ) [inline, virtual]
virtual void osl::Thread::run ( ) [protected, pure virtual]
virtual sal_Bool osl::Thread::schedule ( ) [inline, virtual]
static void osl::Thread::setName ( char const *  name) throw () [inline, static]
void osl::Thread::setPriority ( oslThreadPriority  Priority) [inline]
virtual void osl::Thread::suspend ( ) [inline, virtual]
virtual void osl::Thread::terminate ( ) [inline, virtual]
static void osl::Thread::wait ( const TimeValue Delay) [inline, static]
static void osl::Thread::yield ( ) [inline, static]

Friends And Related Function Documentation

void threadFunc ( void *  param) [friend]

The thread functions calls the protected functions run and onTerminated.

The function's signature matches the one of oslWorkerFunction which is declared in osl/thread.h .


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines