Commit 0c5091c6 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Make sync argument of reified methods const (only read lock needed)

parent 3331b674
......@@ -2722,7 +2722,7 @@ class CppClassScope(Scope):
sync_type = Builtin.acthon_sync_type
activated_method_sync_attr_type = PyrexTypes.CFuncTypeArg(
"sync_method", sync_type, entry.pos, "sync_method")
"sync_method", PyrexTypes.CConstOrVolatileType(sync_type, is_const=1), entry.pos, "sync_method")
activated_method_type = PyrexTypes.CFuncType(result_type,
[activated_method_sync_attr_type] + entry.type.args, nogil=entry.type.nogil,
......
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