LibreOffice Module sw (master) 1
|
helper class to observe threads More...
#include <threadlistener.hxx>
Public Member Functions | |
ThreadListener (ThreadManager &rThreadListenerOwner) | |
helper class to observe threads More... | |
virtual | ~ThreadListener () override |
void | ListenToThread (const oslInterlockedCount nThreadID, ObservableThread &rThread) |
virtual void | NotifyAboutFinishedThread (const oslInterlockedCount nThreadID) override |
Public Member Functions inherited from IFinishedThreadListener | |
virtual | ~IFinishedThreadListener () |
virtual void | NotifyAboutFinishedThread (const oslInterlockedCount nThreadID)=0 |
Private Attributes | |
ThreadManager & | mrThreadListenerOwner |
Additional Inherited Members | |
Protected Member Functions inherited from IFinishedThreadListener | |
IFinishedThreadListener () | |
helper class to observe threads
OD 2007-03-30 #i73788# An instance of this class can be used to observe a thread in order to be notified, if the thread has finished its work. The notification is directly forward to its owner - an instance of ThreadManager Note:
Definition at line 37 of file threadlistener.hxx.
ThreadListener::ThreadListener | ( | ThreadManager & | rThreadListenerOwner | ) |
|
overridevirtual |
Definition at line 31 of file threadlistener.cxx.
void ThreadListener::ListenToThread | ( | const oslInterlockedCount | nThreadID, |
ObservableThread & | rThread | ||
) |
Definition at line 35 of file threadlistener.cxx.
References ThreadManager::GetThreadListenerWeakRef(), mrThreadListenerOwner, and ObservableThread::SetListener().
|
overridevirtual |
Implements IFinishedThreadListener.
Definition at line 42 of file threadlistener.cxx.
References mrThreadListenerOwner, and ThreadManager::NotifyAboutFinishedThread().
|
private |
Definition at line 51 of file threadlistener.hxx.
Referenced by ListenToThread(), and NotifyAboutFinishedThread().