Merge "Link a few of the classes to implemented features/bugs in python"

This commit is contained in:
Jenkins
2014-10-18 19:38:08 +00:00
committed by Gerrit Code Review
2 changed files with 9 additions and 1 deletions

View File

@@ -20,7 +20,12 @@ from taskflow.types import timing as tt
class Latch(object):
"""A class that ensures N-arrivals occur before unblocking."""
"""A class that ensures N-arrivals occur before unblocking.
TODO(harlowja): replace with http://bugs.python.org/issue8777 when we no
longer have to support python 2.6 or 2.7 and we can only support 3.2 or
later.
"""
def __init__(self, count):
count = int(count)

View File

@@ -101,6 +101,9 @@ class ReaderWriterLock(object):
the write lock.
In the future these restrictions may be relaxed.
This can be eventually removed if http://bugs.python.org/issue8800 ever
gets accepted into the python standard threading library...
"""
WRITER = 'w'
READER = 'r'