LibreOffice Module sw (master) 1
|
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 SwThreadManager & | GetThreadManager () |
static bool | ExistsThreadManager () |
Private Member Functions | |
SwThreadManager (SwThreadManager const &)=delete | |
SwThreadManager & | operator= (SwThreadManager const &)=delete |
Private Attributes | |
std::unique_ptr< ThreadManager > | mpThreadManagerImpl |
Static Private Attributes | |
static bool | sbThreadManagerInstantiated = false |
class to manage threads in Writer - it conforms the singleton pattern More... | |
class to manage threads in Writer using a <ThreadManager> instance
#i73788# Conforms the singleton pattern
Definition at line 36 of file swthreadmanager.hxx.
SwThreadManager::SwThreadManager | ( | ) |
Definition at line 31 of file swthreadmanager.cxx.
References mpThreadManagerImpl, and sbThreadManagerInstantiated.
SwThreadManager::~SwThreadManager | ( | ) |
Definition at line 38 of file swthreadmanager.cxx.
|
privatedelete |
oslInterlockedCount SwThreadManager::AddThread | ( | const rtl::Reference< ObservableThread > & | rThread | ) |
Definition at line 53 of file swthreadmanager.cxx.
References mpThreadManagerImpl.
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::CreateThread().
|
static |
Definition at line 48 of file swthreadmanager.cxx.
References sbThreadManagerInstantiated.
Referenced by SwPauseThreadStarting::SwPauseThreadStarting().
|
static |
Definition at line 42 of file swthreadmanager.cxx.
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::CreateThread(), SwPauseThreadStarting::SwPauseThreadStarting(), SwAsyncRetrieveInputStreamThreadConsumer::~SwAsyncRetrieveInputStreamThreadConsumer(), and SwPauseThreadStarting::~SwPauseThreadStarting().
|
privatedelete |
void SwThreadManager::RemoveThread | ( | const oslInterlockedCount | nThreadID | ) |
Definition at line 58 of file swthreadmanager.cxx.
References mpThreadManagerImpl.
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::~SwAsyncRetrieveInputStreamThreadConsumer().
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().
bool SwThreadManager::StartingOfThreadsSuspended | ( | ) |
Definition at line 73 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 63 of file swthreadmanager.cxx.
References mpThreadManagerImpl.
Referenced by SwPauseThreadStarting::SwPauseThreadStarting().
|
private |
Definition at line 73 of file swthreadmanager.hxx.
Referenced by AddThread(), RemoveThread(), ResumeStartingOfThreads(), StartingOfThreadsSuspended(), SuspendStartingOfThreads(), and SwThreadManager().
|
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().