Zannick / logic-graph

Tools for video game logic representation and analysis, particularly routing and beatability checks for speedruns and randomizers.
MIT License
3 stars 0 forks source link

Main threads can exit without the program exiting #124

Open Zannick opened 8 months ago

Zannick commented 8 months ago

I no longer know what happened in this case because all my scrollback is

Bg thread compacting took 1.733µs
Bg thread compacting took 1.864µs
Bg thread compacting took 1.944µs

Similar to #100 we need a more guaranteed exit strategy.

Zannick commented 8 months ago

AtExit should have prevented that, so clearly there's something wrong. The bg thread is unlikely to have been compacting so fast unless the db had been emptied, which should have resulted in the threads exiting in the done state.