Commit Graph

2 Commits

Author SHA1 Message Date
Cheng Shao
9bec2d3aff
Add a check to reactor modules to ensure _initialize is only called once (#388)
Calling _initialize multiple times is undefined behavior, since the
ctors are not guaranteed to be idempotent. We should have this safety
check which is similar to #329.
2023-01-30 04:30:02 -08:00
Dan Gohman
a6d0b4c74b
Reactor support. (#74)
* Add support for the Reactor model.

* Mark _activate and _start as wasm exports.

* Rename _activate to _initialize.

* Don't define `_fini`.

* Rename reactor-crt1.c to crt1-reactor.c.
2020-05-29 09:09:58 -07:00