A safe encapsulation of osl::Thread.
More...
#include <thread.hxx>
A safe encapsulation of osl::Thread.
- Since
- LibreOffice 3.6
§ Thread()
salhelper::Thread::Thread |
( |
char const * |
name | ) |
|
- Parameters
-
name | the thread name, see osl_setThreadName; must be a non-null null terminated string |
§ ~Thread()
virtual salhelper::Thread::~Thread |
( |
| ) |
|
|
protectedvirtual |
§ execute()
virtual void salhelper::Thread::execute |
( |
| ) |
|
|
protectedpure virtual |
The main function executed by the thread.
Any uncaught exceptions lead to std::terminate.
§ launch()
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.
§ operator delete()
static void salhelper::Thread::operator delete |
( |
void * |
pointer | ) |
|
|
inlinestatic |
§ operator new()
static void* salhelper::Thread::operator new |
( |
std::size_t |
size | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: