38 const oslInterlockedCount nThreadID )
54 std::shared_ptr< IFinishedThreadListener > pThreadListener =
mpThreadListener.lock();
55 if ( pThreadListener )
57 pThreadListener->NotifyAboutFinishedThread(
mnThreadID );
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