|
LibreOfficeDev
LibreOfficeDev 25.8 SDK 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... | |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
| SimpleReferenceObject () | |
| void | acquire () |
| void | release () |
Static Public Member Functions | |
| static void * | operator new (std::size_t size) |
| static void | operator delete (void *pointer) |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
| static void * | operator new (std::size_t nSize) |
| see general class documentation More... | |
| static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
| see general class documentation More... | |
| static void | operator delete (void *pPtr) |
| see general class documentation More... | |
| static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
| see general class documentation More... | |
Protected Member Functions | |
| virtual | ~Thread () SAL_OVERRIDE |
| virtual void | execute ()=0 |
| The main function executed by the thread. More... | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
| virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
| void | staticize () |
| mark reference count as not to be touched, and the related object as having an indefinite lifespan. More... | |
Additional Inherited Members | |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
| oslInterlockedCount | m_nCount |
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 |
1.8.14