summaryrefslogtreecommitdiffstats
path: root/binaryurp/source/reader.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'binaryurp/source/reader.cxx')
-rw-r--r--binaryurp/source/reader.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/binaryurp/source/reader.cxx b/binaryurp/source/reader.cxx
index e6b6f06797d9..a871e113b92b 100644
--- a/binaryurp/source/reader.cxx
+++ b/binaryurp/source/reader.cxx
@@ -109,15 +109,15 @@ extern "C" void SAL_CALL request(void * pThreadSpecificData) {
}
-Reader::Reader(rtl::Reference< Bridge > const & bridge): bridge_(bridge) {
+Reader::Reader(rtl::Reference< Bridge > const & bridge):
+ Thread("binaryurpReader"), bridge_(bridge)
+{
assert(bridge.is());
- acquire();
}
Reader::~Reader() {}
-void Reader::run() {
- setName("binaryurpReader");
+void Reader::execute() {
try {
bridge_->sendRequestChangeRequest();
css::uno::Reference< css::connection::XConnection > con(
@@ -153,10 +153,6 @@ void Reader::run() {
bridge_->terminate();
}
-void Reader::onTerminated() {
- release();
-}
-
void Reader::readMessage(Unmarshal & unmarshal) {
sal_uInt8 flags1 = unmarshal.read8();
bool newType;