mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 22:50:44 +00:00
Let a wait whose deadline has passed time out instead of taking a later signal. Keep the main thread's pending wait, with its objects and deadline, when a run that stopped on its budget continues from the same context. Count every call that ends a turn, and neither sleep nor report a deadlock with a spent budget. Retry blocked threads again when one of them ends in the pass, so that a thread waiting for it is not reported as deadlocked or timed out. Refuse to open an ended main thread by its ID. Test that a second scheduler cannot attach while one runs. Addresses review of #339. Refs #323 Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com>