Commit 8d41f2e0 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Make arguments locks correctly set for checklock

parent 4bcb6ffe
...@@ -1906,7 +1906,7 @@ class LocalScope(Scope): ...@@ -1906,7 +1906,7 @@ class LocalScope(Scope):
if type.is_pyobject: if type.is_pyobject:
entry.init = "0" entry.init = "0"
entry.is_arg = 1 entry.is_arg = 1
if type.is_cyp_class and type.lock_mode == "autolock": if type.is_cyp_class and type.lock_mode != "nolock":
arg_lock_state = self.declare_tracked(entry) arg_lock_state = self.declare_tracked(entry)
arg_lock_state.is_rlocked = type.is_const arg_lock_state.is_rlocked = type.is_const
arg_lock_state.is_wlocked = not type.is_const arg_lock_state.is_wlocked = not type.is_const
......
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