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.cxx | |
parent | 0a5dcfe4a1955879f9a0d08ab5f2e826e9d4c2b9 (diff) |
Adapted Reader/Writer to safer-to-use salhelper::Thread
Diffstat (limited to 'binaryurp/source/writer.cxx')
-rw-r--r-- | binaryurp/source/writer.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/binaryurp/source/writer.cxx b/binaryurp/source/writer.cxx index 843f667cfcbd..f5ded2927fea 100644 --- a/binaryurp/source/writer.cxx +++ b/binaryurp/source/writer.cxx @@ -77,10 +77,10 @@ Writer::Item::Item( {} Writer::Writer(rtl::Reference< Bridge > const & bridge): - bridge_(bridge), marshal_(bridge, state_), stop_(false) + Thread("binaryurpWriter"), bridge_(bridge), marshal_(bridge, state_), + stop_(false) { OSL_ASSERT(bridge.is()); - acquire(); } void Writer::sendDirectRequest( @@ -148,8 +148,7 @@ void Writer::stop() { Writer::~Writer() {} -void Writer::run() { - setName("binaryurpWriter"); +void Writer::execute() { try { unblocked_.wait(); for (;;) { @@ -199,10 +198,6 @@ void Writer::run() { bridge_->terminate(); } -void Writer::onTerminated() { - release(); -} - void Writer::sendRequest( rtl::ByteSequence const & tid, rtl::OUString const & oid, css::uno::TypeDescription const & type, |