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 sbThreadManagerInstantiated = 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() [1/2]

SwThreadManager::SwThreadManager ( )

Definition at line 31 of file swthreadmanager.cxx.

References mpThreadManagerImpl, and sbThreadManagerInstantiated.

◆ ~SwThreadManager()

SwThreadManager::~SwThreadManager ( )

Definition at line 38 of file swthreadmanager.cxx.

◆ SwThreadManager() [2/2]

SwThreadManager::SwThreadManager ( SwThreadManager const &  )
privatedelete

Member Function Documentation

◆ AddThread()

oslInterlockedCount SwThreadManager::AddThread ( const rtl::Reference< ObservableThread > &  rThread)

◆ ExistsThreadManager()

bool SwThreadManager::ExistsThreadManager ( )
static

◆ GetThreadManager()

SwThreadManager & SwThreadManager::GetThreadManager ( )
static

◆ operator=()

SwThreadManager & SwThreadManager::operator= ( SwThreadManager const &  )
privatedelete

◆ RemoveThread()

void SwThreadManager::RemoveThread ( const oslInterlockedCount  nThreadID)

◆ ResumeStartingOfThreads()

void SwThreadManager::ResumeStartingOfThreads ( )

continues the starting of threads after it has been suspended

Definition at line 68 of file swthreadmanager.cxx.

References mpThreadManagerImpl.

Referenced by SwPauseThreadStarting::~SwPauseThreadStarting().

◆ StartingOfThreadsSuspended()

bool SwThreadManager::StartingOfThreadsSuspended ( )

Definition at line 73 of file swthreadmanager.cxx.

References mpThreadManagerImpl.

◆ SuspendStartingOfThreads()

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 63 of file swthreadmanager.cxx.

References mpThreadManagerImpl.

Referenced by SwPauseThreadStarting::SwPauseThreadStarting().

Member Data Documentation

◆ mpThreadManagerImpl

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

◆ sbThreadManagerInstantiated

bool SwThreadManager::sbThreadManagerInstantiated = 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().


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