Commit c9248682 authored by gsamain's avatar gsamain

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

parent 6b47599c
......@@ -2621,7 +2621,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