Closed AE9RB closed 10 years ago
once_info.block
is always initialized before calling uv_once
so it should be fine.
( https://github.com/mattn/mruby-uv/blob/cae8153509ca771af124a11d277c15765120c649/src/thread.c#L309 )
Or is there a crash?
Ah sorry, that assert should be removed.
Opened #50.
thread.c must explicitly initialize once_info.block to nil for certain boxing types. Here's one possible solution: