[Libreoffice-commits] .: binaryurp/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Thu Mar 8 05:23:04 PST 2012


 binaryurp/source/bridge.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 672ad9493a484a606df2f546caf98a7a7355fe31
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Mar 8 14:22:25 2012 +0100

    Clarifying comment added

diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx
index fec485d..7718c53 100644
--- a/binaryurp/source/bridge.cxx
+++ b/binaryurp/source/bridge.cxx
@@ -242,6 +242,12 @@ void Bridge::start() {
     writer_->launch();
     reader_.set(new Reader(this));
     reader_->launch();
+        // it is important to call reader_->launch() last here; both
+        // Writer::execute and Reader::execute can call Bridge::terminate, but
+        // Writer::execute is initially blocked in unblocked_.wait() until
+        // Reader::execute has called bridge_->sendRequestChangeRequest(), so
+        // effectively only reader_->launch() can lead to an early call to
+        // Bridge::terminate
 }
 
 void Bridge::terminate() {


More information about the Libreoffice-commits mailing list