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

#include <finalthreadmanager.hxx>

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

Public Member Functions

 FinalThreadManager (css::uno::Reference< css::uno::XComponentContext > context)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL registerJob (const css::uno::Reference< css::util::XCancellable > &Job) override
 
virtual void SAL_CALL releaseJob (const css::uno::Reference< css::util::XCancellable > &Job) override
 
virtual void SAL_CALL cancelAllJobs () override
 
virtual void SAL_CALL cancelTermination (const css::lang::EventObject &Event) override
 
virtual void SAL_CALL queryTermination (const css::lang::EventObject &Event) override
 
virtual void SAL_CALL notifyTermination (const css::lang::EventObject &Event) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 

Private Member Functions

 FinalThreadManager (FinalThreadManager const &)=delete
 
void operator= (FinalThreadManager const &)=delete
 
virtual ~FinalThreadManager () override
 
void registerAsListenerAtDesktop ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
osl::Mutex maMutex
 
std::list< css::uno::Reference< css::util::XCancellable > > maThreads
 
std::unique_ptr< CancelJobsThreadmpCancelJobsThread
 
TerminateOfficeThreadmpTerminateOfficeThread
 
std::unique_ptr< SwPauseThreadStarting, o3tl::default_delete< SwPauseThreadStarting > > mpPauseThreadStarting
 
bool mbRegisteredAtDesktop
 

Detailed Description

Definition at line 39 of file finalthreadmanager.hxx.

Constructor & Destructor Documentation

◆ FinalThreadManager() [1/2]

FinalThreadManager::FinalThreadManager ( css::uno::Reference< css::uno::XComponentContext >  context)
explicit

Definition at line 227 of file finalthreadmanager.cxx.

References m_xContext.

◆ FinalThreadManager() [2/2]

FinalThreadManager::FinalThreadManager ( FinalThreadManager const &  )
privatedelete

◆ ~FinalThreadManager()

FinalThreadManager::~FinalThreadManager ( )
overrideprivatevirtual

Member Function Documentation

◆ cancelAllJobs()

void SAL_CALL FinalThreadManager::cancelAllJobs ( )
overridevirtual

◆ cancelTermination()

void SAL_CALL FinalThreadManager::cancelTermination ( const css::lang::EventObject &  Event)
overridevirtual

Definition at line 380 of file finalthreadmanager.cxx.

References mpPauseThreadStarting.

◆ disposing()

void SAL_CALL FinalThreadManager::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 414 of file finalthreadmanager.cxx.

◆ getImplementationName()

OUString SAL_CALL FinalThreadManager::getImplementationName ( )
overridevirtual

Definition at line 272 of file finalthreadmanager.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL FinalThreadManager::getSupportedServiceNames ( )
overridevirtual

Definition at line 282 of file finalthreadmanager.cxx.

◆ notifyTermination()

void SAL_CALL FinalThreadManager::notifyTermination ( const css::lang::EventObject &  Event)
overridevirtual

◆ operator=()

void FinalThreadManager::operator= ( FinalThreadManager const &  )
privatedelete

◆ queryTermination()

void SAL_CALL FinalThreadManager::queryTermination ( const css::lang::EventObject &  Event)
overridevirtual

◆ registerAsListenerAtDesktop()

void FinalThreadManager::registerAsListenerAtDesktop ( )
private

Definition at line 235 of file finalthreadmanager.cxx.

References m_xContext.

Referenced by registerJob().

◆ registerJob()

void SAL_CALL FinalThreadManager::registerJob ( const css::uno::Reference< css::util::XCancellable > &  Job)
overridevirtual

◆ releaseJob()

void SAL_CALL FinalThreadManager::releaseJob ( const css::uno::Reference< css::util::XCancellable > &  Job)
overridevirtual

Definition at line 301 of file finalthreadmanager.cxx.

References maMutex, and maThreads.

◆ supportsService()

sal_Bool SAL_CALL FinalThreadManager::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 277 of file finalthreadmanager.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > FinalThreadManager::m_xContext
private

Definition at line 74 of file finalthreadmanager.hxx.

Referenced by queryTermination(), and registerAsListenerAtDesktop().

◆ maMutex

osl::Mutex FinalThreadManager::maMutex
private

Definition at line 76 of file finalthreadmanager.hxx.

Referenced by cancelAllJobs(), queryTermination(), registerJob(), and releaseJob().

◆ maThreads

std::list< css::uno::Reference< css::util::XCancellable > > FinalThreadManager::maThreads
private

◆ mbRegisteredAtDesktop

bool FinalThreadManager::mbRegisteredAtDesktop
private

Definition at line 83 of file finalthreadmanager.hxx.

Referenced by registerJob().

◆ mpCancelJobsThread

std::unique_ptr<CancelJobsThread> FinalThreadManager::mpCancelJobsThread
private

◆ mpPauseThreadStarting

std::unique_ptr<SwPauseThreadStarting, o3tl::default_delete<SwPauseThreadStarting> > FinalThreadManager::mpPauseThreadStarting
private

Definition at line 81 of file finalthreadmanager.hxx.

Referenced by cancelTermination(), queryTermination(), and ~FinalThreadManager().

◆ mpTerminateOfficeThread

TerminateOfficeThread* FinalThreadManager::mpTerminateOfficeThread
private

Definition at line 80 of file finalthreadmanager.hxx.

Referenced by notifyTermination(), queryTermination(), and ~FinalThreadManager().


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