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

helper class to observe threads More...

#include <threadlistener.hxx>

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

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

ThreadManagermrThreadListenerOwner
 

Additional Inherited Members

- Protected Member Functions inherited from IFinishedThreadListener
 IFinishedThreadListener ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ThreadListener()

ThreadListener::ThreadListener ( ThreadManager rThreadListenerOwner)

helper class to observe threads

#i73788#

Definition at line 26 of file threadlistener.cxx.

◆ ~ThreadListener()

ThreadListener::~ThreadListener ( )
overridevirtual

Definition at line 31 of file threadlistener.cxx.

Member Function Documentation

◆ ListenToThread()

void ThreadListener::ListenToThread ( const oslInterlockedCount  nThreadID,
ObservableThread rThread 
)

◆ NotifyAboutFinishedThread()

void ThreadListener::NotifyAboutFinishedThread ( const oslInterlockedCount  nThreadID)
overridevirtual

Member Data Documentation

◆ mrThreadListenerOwner

ThreadManager& ThreadListener::mrThreadListenerOwner
private

Definition at line 51 of file threadlistener.hxx.

Referenced by ListenToThread(), and NotifyAboutFinishedThread().


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