mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-07 07:50:27 +00:00
af7af615c7
We now wait for workers to terminate when closing the computer thread. I'll be honest, I'm not happy with this code. Multi-threading is really hard to get right, and I can't say I'm convinced this is especially well behaved. I did look at trying to model this in TLA+, but in the end decided it wasn't worth it. In the future we probably want to split ComputerExecutor into two objects, where one is our entry in the ComputerThread queue (and so holds timing information) while the other is responsible for actual execution. |
||
---|---|---|
.. | ||
java/dan200/computercraft | ||
resources |