diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-02-23 10:30:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-02-23 10:47:36 +0100 |
commit | d21fb1451e7260e179b90ed95664f9bebb67eed1 (patch) | |
tree | 47204c3fe3b0889d621a1753b4657d429c33fd55 /binaryurp/source/writer.hxx | |
parent | Adapted AsynchReader to safer-to-use salhelper::Thread (diff) | |
download | core-d21fb1451e7260e179b90ed95664f9bebb67eed1.tar.gz core-d21fb1451e7260e179b90ed95664f9bebb67eed1.zip |
Adapted Reader/Writer to safer-to-use salhelper::Thread
Diffstat (limited to 'binaryurp/source/writer.hxx')
-rw-r--r-- | binaryurp/source/writer.hxx | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/binaryurp/source/writer.hxx b/binaryurp/source/writer.hxx index 60d097e87647..e7ae0a24573b 100644 --- a/binaryurp/source/writer.hxx +++ b/binaryurp/source/writer.hxx @@ -31,19 +31,15 @@ #include "sal/config.h" -#include <cstddef> #include <deque> #include <vector> -#include "boost/noncopyable.hpp" #include "osl/conditn.hxx" #include "osl/mutex.hxx" -#include "osl/thread.hxx" #include "rtl/byteseq.hxx" #include "rtl/ref.hxx" #include "rtl/ustring.hxx" -#include "sal/types.h" -#include "salhelper/simplereferenceobject.hxx" +#include "salhelper/thread.hxx" #include "typelib/typedescription.hxx" #include "uno/dispatcher.hxx" @@ -55,17 +51,9 @@ namespace binaryurp { class Bridge; } namespace binaryurp { -class Writer: - public osl::Thread, public salhelper::SimpleReferenceObject, - private boost::noncopyable +class Writer: public salhelper::Thread { public: - static void * operator new(std::size_t size) - { return Thread::operator new(size); } - - static void operator delete(void * pointer) - { Thread::operator delete(pointer); } - explicit Writer(rtl::Reference< Bridge > const & bridge); // Only called from Bridge::reader_ thread, and only before Bridge::writer_ @@ -104,9 +92,7 @@ public: private: virtual ~Writer(); - virtual void SAL_CALL run(); - - virtual void SAL_CALL onTerminated(); + virtual void execute(); void sendRequest( rtl::ByteSequence const & tid, rtl::OUString const & oid, |