Commit e18f57fc authored by gsamain's avatar gsamain

with unlocked statement: make was_rlocked flag aware of write lock presence

parent 6ec93025
...@@ -8231,8 +8231,8 @@ class LockCypclassNode(StatNode): ...@@ -8231,8 +8231,8 @@ class LockCypclassNode(StatNode):
# We need to save states because in case of 'with unlocked' statement, # We need to save states because in case of 'with unlocked' statement,
# we must know which lock has to be restored after the with body. # we must know which lock has to be restored after the with body.
self.was_rlocked = is_rlocked
self.was_wlocked = is_wlocked self.was_wlocked = is_wlocked
self.was_rlocked = is_rlocked and not is_wlocked
tracked_state = self.obj.tracked_state tracked_state = self.obj.tracked_state
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment