summaryrefslogtreecommitdiffstats
path: root/binaryurp/source/reader.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-23 10:30:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-23 10:47:36 +0100
commitd21fb1451e7260e179b90ed95664f9bebb67eed1 (patch)
tree47204c3fe3b0889d621a1753b4657d429c33fd55 /binaryurp/source/reader.hxx
parentAdapted AsynchReader to safer-to-use salhelper::Thread (diff)
downloadcore-d21fb1451e7260e179b90ed95664f9bebb67eed1.tar.gz
core-d21fb1451e7260e179b90ed95664f9bebb67eed1.zip
Adapted Reader/Writer to safer-to-use salhelper::Thread
Diffstat (limited to 'binaryurp/source/reader.hxx')
-rw-r--r--binaryurp/source/reader.hxx21
1 files changed, 3 insertions, 18 deletions
diff --git a/binaryurp/source/reader.hxx b/binaryurp/source/reader.hxx
index 3fb2fe3af3ad..4fa923b85367 100644
--- a/binaryurp/source/reader.hxx
+++ b/binaryurp/source/reader.hxx
@@ -31,15 +31,11 @@
#include "sal/config.h"
-#include <cstddef>
-
-#include "boost/noncopyable.hpp"
-#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 "readerstate.hxx"
@@ -52,25 +48,14 @@ namespace binaryurp {
namespace binaryurp {
-class Reader:
- public osl::Thread, public salhelper::SimpleReferenceObject,
- private boost::noncopyable
-{
+class Reader: 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 Reader(rtl::Reference< Bridge > const & bridge);
private:
virtual ~Reader();
- virtual void SAL_CALL run();
-
- virtual void SAL_CALL onTerminated();
+ virtual void execute();
void readMessage(Unmarshal & unmarshal);