[Libreoffice-commits] core.git: include/osl

Michael Meeks michael.meeks at collabora.com
Mon Dec 2 03:55:21 PST 2013


 include/osl/conditn.hxx |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 3c2e8e3484d670aeb42e540b409543fe01ac5bb9
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Mon Dec 2 11:54:28 2013 +0000

    add health warning on osl condition.
    
    Change-Id: I24619afb8b1ea0410e95e60fe70b5166e18fab44

diff --git a/include/osl/conditn.hxx b/include/osl/conditn.hxx
index 5ca0323..337d651 100644
--- a/include/osl/conditn.hxx
+++ b/include/osl/conditn.hxx
@@ -29,7 +29,14 @@
 
 namespace osl
 {
-
+    /**
+     * Warning: the Condition abstraction is inadequate for any
+     * situation where there may be multiple threads setting,
+     * waiting, and resetting the same condition. It can only be
+     * used to synchronise interactions between two threads
+     * cf. lost wakeups in:
+     *    http://www.cs.wustl.edu/~schmidt/win32-cv-1.html
+     */
     class Condition
     {
     public:


More information about the Libreoffice-commits mailing list