Changeset 388 for python/vendor/current/Lib/mutex.py
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Lib/mutex.py
r2 r388 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.