Revision d6646186 lib/locking.py
b/lib/locking.py | ||
---|---|---|
38 | 38 |
|
39 | 39 |
""" |
40 | 40 |
def __init__(self): |
41 |
"""Construct a new Shared Lock"""
|
|
41 |
"""Construct a new SharedLock""" |
|
42 | 42 |
# we have two conditions, c_shr and c_exc, sharing the same lock. |
43 | 43 |
self.__lock = threading.Lock() |
44 | 44 |
self.__turn_shr = threading.Condition(self.__lock) |
Also available in: Unified diff