salhelper::Thread Class Reference

A safe encapsulation of osl::Thread. More...

#include <thread.hxx>

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

List of all members.

Public Member Functions

 Thread (char const *name)
void launch ()
 Launch the thread.

Static Public Member Functions

static void * operator new (std::size_t size)
 see general class documentation
static void operator delete (void *pointer)
 see general class documentation

Protected Member Functions

virtual ~Thread ()
virtual void execute ()=0
 The main function executed by the thread.

Detailed Description

A safe encapsulation of osl::Thread.

Since:
LibreOffice 3.6

Constructor & Destructor Documentation

salhelper::Thread::Thread ( char const *  name  ) 
Parameters:
name the thread name, see osl_setThreadName; must be a non-null null terminated string
virtual salhelper::Thread::~Thread (  )  [protected, virtual]

Reimplemented from osl::Thread.


Member Function Documentation

virtual void salhelper::Thread::execute (  )  [protected, pure 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.

static void salhelper::Thread::operator delete ( void *  pPtr  )  [inline, static]

see general class documentation

Reimplemented from salhelper::SimpleReferenceObject.

static void* salhelper::Thread::operator new ( std::size_t  nSize  )  [inline, static]

see general class documentation

Reimplemented from salhelper::SimpleReferenceObject.


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

Generated on 12 Dec 2013 by  doxygen 1.6.1