My Project
UDK 3.2.7 C/C++ API Reference
|
A safe encapsulation of osl::Thread. More...
#include <thread.hxx>
Public Member Functions | |
Thread (char const *name) | |
void | launch () |
Launch the thread. More... | |
![]() | |
SimpleReferenceObject () throw () | |
void | acquire () throw () |
void | release () throw () |
Static Public Member Functions | |
static void * | operator new (std::size_t size) |
static void | operator delete (void *pointer) |
![]() | |
static void * | operator new (std::size_t nSize) throw (std::bad_alloc) |
see general class documentation More... | |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) throw () |
see general class documentation More... | |
static void | operator delete (void *pPtr) throw () |
see general class documentation More... | |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) throw () |
see general class documentation More... | |
Protected Member Functions | |
virtual | ~Thread () |
virtual void | execute ()=0 |
The main function executed by the thread. More... | |
![]() | |
virtual | ~SimpleReferenceObject () throw () |
Additional Inherited Members | |
![]() | |
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 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 () |
A safe encapsulation of osl::Thread.
salhelper::Thread::Thread | ( | char const * | name | ) |
name | the thread name, see osl_setThreadName; must be a non-null null terminated string |
|
protectedvirtual |
Reimplemented from osl::Thread.
|
protectedpure virtual |
The main function executed by the thread.
Any uncaught exceptions lead to std::terminate.
void salhelper::Thread::launch | ( | ) |
Launch the thread.
This function must be called at most once.
Each call of this function should eventually be followed by a call to osl::Thread::join before exit(3), to ensure the thread is no longer relying on any infrastructure while that infrastructure is being shut down in atexit handlers.
|
inlinestatic |
|
inlinestatic |