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

class to manage threads in Writer using a <ThreadManager> instance More...

#include <swthreadmanager.hxx>

Public Member Functions

 SwThreadManager ()
 
 ~SwThreadManager ()
 
oslInterlockedCount AddThread (const rtl::Reference< ObservableThread > &rThread)
 
void RemoveThread (const oslInterlockedCount nThreadID)
 
void SuspendStartingOfThreads ()
 suspend the starting of threads More...
 
void ResumeStartingOfThreads ()
 continues the starting of threads after it has been suspended More...
 
bool StartingOfThreadsSuspended ()
 

Static Public Member Functions

static SwThreadManagerGetThreadManager ()
 
static bool ExistsThreadManager ()
 

Private Member Functions

 SwThreadManager (SwThreadManager const &)=delete
 
SwThreadManageroperator= (SwThreadManager const &)=delete
 

Private Attributes

std::unique_ptr< ThreadManagermpThreadManagerImpl
 

Static Private Attributes

static bool mbThreadManagerInstantiated = false
 class to manage threads in Writer - it conforms the singleton pattern More...
 

Detailed Description

class to manage threads in Writer using a <ThreadManager> instance

#i73788# Conforms the singleton pattern

Definition at line 36 of file swthreadmanager.hxx.

Constructor & Destructor Documentation

SwThreadManager::SwThreadManager ( )

Definition at line 31 of file swthreadmanager.cxx.

References mbThreadManagerInstantiated, and mpThreadManagerImpl.

SwThreadManager::~SwThreadManager ( )

Definition at line 38 of file swthreadmanager.cxx.

SwThreadManager::SwThreadManager ( SwThreadManager const &  )
privatedelete

Member Function Documentation

oslInterlockedCount SwThreadManager::AddThread ( const rtl::Reference< ObservableThread > &  rThread)
bool SwThreadManager::ExistsThreadManager ( )
static
SwThreadManager & SwThreadManager::GetThreadManager ( )
static
SwThreadManager& SwThreadManager::operator= ( SwThreadManager const &  )
privatedelete
void SwThreadManager::RemoveThread ( const oslInterlockedCount  nThreadID)
void SwThreadManager::ResumeStartingOfThreads ( )

continues the starting of threads after it has been suspended

Definition at line 69 of file swthreadmanager.cxx.

References mpThreadManagerImpl.

Referenced by SwPauseThreadStarting::~SwPauseThreadStarting().

bool SwThreadManager::StartingOfThreadsSuspended ( )

Definition at line 74 of file swthreadmanager.cxx.

References mpThreadManagerImpl.

void SwThreadManager::SuspendStartingOfThreads ( )

suspend the starting of threads

Suspending the starting of further threads is sensible during the destruction of a Writer document.

Definition at line 64 of file swthreadmanager.cxx.

References mpThreadManagerImpl.

Referenced by SwPauseThreadStarting::SwPauseThreadStarting().

Member Data Documentation

bool SwThreadManager::mbThreadManagerInstantiated = false
staticprivate

class to manage threads in Writer - it conforms the singleton pattern

#i73788#

Definition at line 71 of file swthreadmanager.hxx.

Referenced by ExistsThreadManager(), and SwThreadManager().

std::unique_ptr<ThreadManager> SwThreadManager::mpThreadManagerImpl
private

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