summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-16 18:59:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-16 19:01:27 +0100
commit4a98b359d8ba392362ac6a40692912b58a3b1544 (patch)
tree04fe411345fb6d712bb386ddd7575c831de9d65e /comphelper
parent1cc602e09b8b6ddaac8ddf526383ed28a1e42bd5 (diff)
Clean up AsyncEventNotifier interface
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/inc/comphelper/asyncnotification.hxx11
-rw-r--r--comphelper/source/misc/asyncnotification.cxx4
2 files changed, 3 insertions, 12 deletions
diff --git a/comphelper/inc/comphelper/asyncnotification.hxx b/comphelper/inc/comphelper/asyncnotification.hxx
index 6f2f1af34dee..e7d5ac38ff3b 100644
--- a/comphelper/inc/comphelper/asyncnotification.hxx
+++ b/comphelper/inc/comphelper/asyncnotification.hxx
@@ -91,7 +91,6 @@ namespace comphelper
//====================================================================
//= AsyncEventNotifier
//====================================================================
- typedef ::osl::Thread AsyncEventNotifier_TBASE;
struct EventNotifierImpl;
/** a helper class for notifying events asynchronously
@@ -110,7 +109,7 @@ namespace comphelper
events in the queue. As soon as you add an event, the thread is woken up, processes the event,
and sleeps again.
*/
- class COMPHELPER_DLLPUBLIC AsyncEventNotifier :protected AsyncEventNotifier_TBASE
+ class COMPHELPER_DLLPUBLIC AsyncEventNotifier :public ::osl::Thread
,public ::rtl::IReference
{
friend struct EventNotifierImpl;
@@ -118,7 +117,6 @@ namespace comphelper
private:
::std::auto_ptr< EventNotifierImpl > m_pImpl;
- protected:
// Thread
virtual void SAL_CALL run();
virtual void SAL_CALL onTerminated();
@@ -132,13 +130,6 @@ namespace comphelper
virtual oslInterlockedCount SAL_CALL acquire();
virtual oslInterlockedCount SAL_CALL release();
- using AsyncEventNotifier_TBASE::create;
- using AsyncEventNotifier_TBASE::join;
- using AsyncEventNotifier_TBASE::getIdentifier;
-
- using AsyncEventNotifier_TBASE::operator new;
- using AsyncEventNotifier_TBASE::operator delete;
-
/** terminates the thread
Note that this is a cooporative termination - if you call this from a thread different
diff --git a/comphelper/source/misc/asyncnotification.cxx b/comphelper/source/misc/asyncnotification.cxx
index 7e225ed78c0a..cf8b6286d97b 100644
--- a/comphelper/source/misc/asyncnotification.cxx
+++ b/comphelper/source/misc/asyncnotification.cxx
@@ -171,7 +171,7 @@ namespace comphelper
::osl::MutexGuard aGuard( m_pImpl->aMutex );
// remember the termination request
- AsyncEventNotifier_TBASE::terminate();
+ Thread::terminate();
// awake the thread
m_pImpl->aPendingActions.set();
@@ -251,7 +251,7 @@ namespace comphelper
//--------------------------------------------------------------------
void SAL_CALL AsyncEventNotifier::onTerminated()
{
- AsyncEventNotifier_TBASE::onTerminated();
+ Thread::onTerminated();
// when we were started (->run), we aquired ourself. Release this now
// that we were finally terminated
release();