Changeset 391 for python/trunk/Lib/mutex.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/mutex.py
r2 r391 21 21 def __init__(self): 22 22 """Create a new mutex -- initially unlocked.""" 23 self.locked = 023 self.locked = False 24 24 self.queue = deque() 25 25 … … 32 32 return True if it succeeded.""" 33 33 if not self.locked: 34 self.locked = 134 self.locked = True 35 35 return True 36 36 else: … … 53 53 function(argument) 54 54 else: 55 self.locked = 055 self.locked = False
Note:
See TracChangeset
for help on using the changeset viewer.