solarcaratuva / Rivanna2

Embedded system code for Rivanna 2
5 stars 1 forks source link

Add checks to main loops to make sure threads are still running #123

Closed john-chrosniak closed 2 years ago

john-chrosniak commented 2 years ago

In the event that a thread crashes, the thread should be restarted if possible. If this isn't possible, the car should shut down.

This could maybe done in a global context (checking status of all threads)?

sparthaje commented 2 years ago

When an exception is thrown in a thread, the entire main loop stops running.