LibreOffice Module framework (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
framework::WakeUpThread Class Referencefinal

#include <wakeupthread.hxx>

Inheritance diagram for framework::WakeUpThread:
[legend]
Collaboration diagram for framework::WakeUpThread:
[legend]

Public Member Functions

 WakeUpThread (css::uno::Reference< css::util::XUpdatable > const &updatable)
 
void stop ()
 
- Public Member Functions inherited from salhelper::Thread
 Thread (char const *name)
 
void launch ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

void execute () override
 

Private Attributes

css::uno::WeakReference< css::util::XUpdatable > updatable_
 
std::condition_variable condition_
 
std::mutex mutex_
 
bool terminate_
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::Thread
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)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from salhelper::Thread
virtual ~Thread () SAL_OVERRIDE
 
virtual void execute ()=0
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 37 of file wakeupthread.hxx.

Constructor & Destructor Documentation

◆ WakeUpThread()

framework::WakeUpThread::WakeUpThread ( css::uno::Reference< css::util::XUpdatable > const &  updatable)

Definition at line 46 of file wakeupthread.cxx.

Member Function Documentation

◆ execute()

void framework::WakeUpThread::execute ( )
overrideprivatevirtual

Implements salhelper::Thread.

Definition at line 30 of file wakeupthread.cxx.

References condition_, mutex_, terminate_, up(), and updatable_.

◆ stop()

void framework::WakeUpThread::stop ( )

Definition at line 51 of file wakeupthread.cxx.

References join(), and mutex_.

Member Data Documentation

◆ condition_

std::condition_variable framework::WakeUpThread::condition_
private

Definition at line 40 of file wakeupthread.hxx.

Referenced by execute().

◆ mutex_

std::mutex framework::WakeUpThread::mutex_
private

Definition at line 41 of file wakeupthread.hxx.

Referenced by execute().

◆ terminate_

bool framework::WakeUpThread::terminate_
private

Definition at line 42 of file wakeupthread.hxx.

Referenced by execute().

◆ updatable_

css::uno::WeakReference<css::util::XUpdatable> framework::WakeUpThread::updatable_
private

Definition at line 39 of file wakeupthread.hxx.

Referenced by execute().


The documentation for this class was generated from the following files: