LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CancelJobsThread Class Reference

thread to cancel a give list of cancellable jobs More...

Inheritance diagram for CancelJobsThread:
[legend]
Collaboration diagram for CancelJobsThread:
[legend]

Public Member Functions

 CancelJobsThread (const std::list< css::uno::Reference< css::util::XCancellable > > &rJobs)
 
void addJobs (std::list< css::uno::Reference< css::util::XCancellable > > &rJobs)
 
bool allJobsCancelled () const
 
void stopWhenAllJobsCancelled ()
 

Private Member Functions

bool existJobs () const
 
css::uno::Reference< css::util::XCancellable > getNextJob ()
 
bool stopped () const
 
virtual void SAL_CALL run () override
 

Private Attributes

osl::Mutex maMutex
 
std::list< css::uno::Reference< css::util::XCancellable > > maJobs
 
bool mbAllJobsCancelled
 
bool mbStopped
 

Detailed Description

thread to cancel a give list of cancellable jobs

helper class for FinalThreadManager

Definition at line 36 of file finalthreadmanager.cxx.

Constructor & Destructor Documentation

CancelJobsThread::CancelJobsThread ( const std::list< css::uno::Reference< css::util::XCancellable > > &  rJobs)
inlineexplicit

Definition at line 39 of file finalthreadmanager.cxx.

Member Function Documentation

void CancelJobsThread::addJobs ( std::list< css::uno::Reference< css::util::XCancellable > > &  rJobs)

Definition at line 67 of file finalthreadmanager.cxx.

References maJobs, maMutex, and mbAllJobsCancelled.

bool CancelJobsThread::allJobsCancelled ( ) const

Definition at line 82 of file finalthreadmanager.cxx.

References maJobs, maMutex, and mbAllJobsCancelled.

Referenced by TerminateOfficeThread::run().

bool CancelJobsThread::existJobs ( ) const
private

Definition at line 75 of file finalthreadmanager.cxx.

References maJobs, and maMutex.

Referenced by run().

css::uno::Reference< css::util::XCancellable > CancelJobsThread::getNextJob ( )
private

Definition at line 96 of file finalthreadmanager.cxx.

References maJobs, and maMutex.

Referenced by run().

void SAL_CALL CancelJobsThread::run ( )
overrideprivatevirtual

Definition at line 120 of file finalthreadmanager.cxx.

References existJobs(), getNextJob(), mbAllJobsCancelled, and stopped().

bool CancelJobsThread::stopped ( ) const
private

Definition at line 113 of file finalthreadmanager.cxx.

References maMutex, and mbStopped.

Referenced by run().

void CancelJobsThread::stopWhenAllJobsCancelled ( )

Definition at line 89 of file finalthreadmanager.cxx.

References maMutex, and mbStopped.

Member Data Documentation

std::list< css::uno::Reference< css::util::XCancellable > > CancelJobsThread::maJobs
private

Definition at line 61 of file finalthreadmanager.cxx.

Referenced by addJobs(), allJobsCancelled(), existJobs(), and getNextJob().

osl::Mutex CancelJobsThread::maMutex
mutableprivate
bool CancelJobsThread::mbAllJobsCancelled
private

Definition at line 63 of file finalthreadmanager.cxx.

Referenced by addJobs(), allJobsCancelled(), and run().

bool CancelJobsThread::mbStopped
private

Definition at line 64 of file finalthreadmanager.cxx.

Referenced by stopped(), and stopWhenAllJobsCancelled().


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