mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
* fix UB when Thread.spawn fails, and we try to join uninitialized threads (through new `thread_count` variable). * make sure that the tests pins down synchronization guarantees: in the main thread, we can observe `1` due to synchronization from `Thread.join()`. To make sure that once uses Acq/Rel, and not just relaxed, we should also additionally check that each thread observes 1, regardless of whether it was the one to call once.
71 lines
2 KiB
71 lines
2 KiB