[Python-checkins] r85888 - python/branches/py3k/Lib/multiprocessing/synchronize.py

georg.brandl python-checkins at python.org
Thu Oct 28 15:01:07 CEST 2010


Author: georg.brandl
Date: Thu Oct 28 15:01:06 2010
New Revision: 85888

Log:
Support new Condition return value in the multiprocessing version.

Modified:
   python/branches/py3k/Lib/multiprocessing/synchronize.py

Modified: python/branches/py3k/Lib/multiprocessing/synchronize.py
==============================================================================
--- python/branches/py3k/Lib/multiprocessing/synchronize.py	(original)
+++ python/branches/py3k/Lib/multiprocessing/synchronize.py	Thu Oct 28 15:01:06 2010
@@ -217,7 +217,7 @@
 
         try:
             # wait for notification or timeout
-            self._wait_semaphore.acquire(True, timeout)
+            ret = self._wait_semaphore.acquire(True, timeout)
         finally:
             # indicate that this thread has woken
             self._woken_count.release()
@@ -225,6 +225,7 @@
             # reacquire lock
             for i in range(count):
                 self._lock.acquire()
+            return ret
 
     def notify(self):
         assert self._lock._semlock._is_mine(), 'lock is not owned'


More information about the Python-checkins mailing list