LibreOffice Module sw (master) 1
|
thread to cancel a give list of cancellable jobs More...
Public Member Functions | |
CancelJobsThread (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 | |
std::mutex | maMutex |
std::list< css::uno::Reference< css::util::XCancellable > > | maJobs |
bool | mbAllJobsCancelled |
bool | mbStopped |
thread to cancel a give list of cancellable jobs
helper class for FinalThreadManager
Definition at line 39 of file finalthreadmanager.cxx.
|
inlineexplicit |
Definition at line 42 of file finalthreadmanager.cxx.
void CancelJobsThread::addJobs | ( | std::list< css::uno::Reference< css::util::XCancellable > > & | rJobs | ) |
Definition at line 68 of file finalthreadmanager.cxx.
References maJobs, maMutex, and mbAllJobsCancelled.
bool CancelJobsThread::allJobsCancelled | ( | ) | const |
Definition at line 83 of file finalthreadmanager.cxx.
References maJobs, maMutex, and mbAllJobsCancelled.
Referenced by TerminateOfficeThread::run().
|
private |
Definition at line 76 of file finalthreadmanager.cxx.
References maJobs, and maMutex.
Referenced by run().
|
private |
Definition at line 97 of file finalthreadmanager.cxx.
References maJobs, and maMutex.
Referenced by run().
|
overrideprivatevirtual |
Definition at line 121 of file finalthreadmanager.cxx.
References existJobs(), getNextJob(), mbAllJobsCancelled, and stopped().
|
private |
Definition at line 114 of file finalthreadmanager.cxx.
References maMutex, and mbStopped.
Referenced by run().
void CancelJobsThread::stopWhenAllJobsCancelled | ( | ) |
Definition at line 90 of file finalthreadmanager.cxx.
|
private |
Definition at line 62 of file finalthreadmanager.cxx.
Referenced by addJobs(), allJobsCancelled(), existJobs(), and getNextJob().
|
mutableprivate |
Definition at line 60 of file finalthreadmanager.cxx.
Referenced by addJobs(), allJobsCancelled(), existJobs(), getNextJob(), stopped(), and stopWhenAllJobsCancelled().
|
private |
Definition at line 64 of file finalthreadmanager.cxx.
Referenced by addJobs(), allJobsCancelled(), and run().
|
private |
Definition at line 65 of file finalthreadmanager.cxx.
Referenced by stopped(), and stopWhenAllJobsCancelled().