[haiku-commits] r35574 - haiku/trunk/src/add-ons/kernel/drivers/tty

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 22 Feb 2010 19:10:29 +0100 (CET)

Author: bonefish
Date: 2010-02-22 19:10:29 +0100 (Mon, 22 Feb 2010)
New Revision: 35574
Changeset: http://dev.haiku-os.org/changeset/35574/haiku

Modified:
   haiku/trunk/src/add-ons/kernel/drivers/tty/tty.cpp
Log:
RequestOwner::Wait(): No need to publish the condition variable.


Modified: haiku/trunk/src/add-ons/kernel/drivers/tty/tty.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/drivers/tty/tty.cpp  2010-02-22 12:53:47 UTC 
(rev 35573)
+++ haiku/trunk/src/add-ons/kernel/drivers/tty/tty.cpp  2010-02-22 18:10:29 UTC 
(rev 35574)
@@ -416,12 +416,12 @@
 
                // publish the condition variable
                ConditionVariable conditionVariable;
-               conditionVariable.Publish(this, "tty request");
+               conditionVariable.Init(this, "tty request");
                fConditionVariable = &conditionVariable;
 
                // add an entry to wait on
                ConditionVariableEntry entry;
-               entry.Add(this);
+               conditionVariable.Add(&entry);
 
                locker.Unlock();
 
@@ -438,7 +438,6 @@
                // remove the condition variable
                locker.Lock();
                fConditionVariable = NULL;
-               conditionVariable.Unpublish();
        }
 
        // get the result


Other related posts:

  • » [haiku-commits] r35574 - haiku/trunk/src/add-ons/kernel/drivers/tty - ingo_weinhold