19#ifndef INCLUDED_SW_SOURCE_CORE_INC_OBSERVABLETHREAD_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_OBSERVABLETHREAD_HXX
22#include <osl/thread.hxx>
23#include <osl/interlck.h>
46 void SetListener( std::weak_ptr< IFinishedThreadListener >
const & pThreadListener,
47 const oslInterlockedCount nThreadID );
50 using SimpleReferenceObject::operator
new;
51 using SimpleReferenceObject::operator
delete;
64 virtual void SAL_CALL
run()
override;
interface class to listen on the finish of a thread
class for an observable thread
std::weak_ptr< IFinishedThreadListener > mpThreadListener
virtual void SAL_CALL run() override
intrinsic function of the thread
virtual void SAL_CALL onTerminated() override
method called, when thread has finished its work
virtual ~ObservableThread() override
void SetListener(std::weak_ptr< IFinishedThreadListener > const &pThreadListener, const oslInterlockedCount nThreadID)
virtual void threadFunction()=0
oslInterlockedCount mnThreadID