mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 08:23:20 +00:00
The opening tests waited 400 or 500 ms of wall-clock time for files read off the UI thread, and up to 30 s in loops that polled until the queue emptied. Under load a read could take longer, and a_file_that_opens_and_asks_holds_back_the_next_one_ready failed. wait_read now blocks on each pending file's own result channel and keeps the result for poll, and open_ready waits and then polls once. The background save in long_operation_busy_while_a_file_opens_or_a_background_save_runs waits with background::wait_all, and its job waits on the release channel without a timeout. Shipped code is unchanged.