Discussion
Loading...

Post

  • Log in
  • Sign up
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Federation Bot
Federation Bot
@Federation_Bot  ·  activity timestamp 4 months ago

In this case a fallback main() function would repeatedly invoke loop() & the WDR opcode. Maybe it'd also invoke a init() function to be run after all other initialization.

Maybe the setup routine (if there's finalizers to call) would configure abort() to run when this watchdog timer fires, whilst abort() could clear that configuration in case any of the finalizers take too long.

Or +oneshot could tell our runtime to power-off when main() ends, via a specially-configured SLEEP opcode.

3/3 Fin!

  • Copy link
  • Flag this post
  • Block
Instance logo
bonfire.cafe
Log in Create account
Banner for bonfire.cafe

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire bovenjan · 1.0.3-alpha.10 no JS en
Federation disabled
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct

Install bonfire.cafe

Get the full app experience

1 Tap Share 2 Add to Home Screen