mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 20:13:21 +00:00
This was originally supposed to be a lock-free queue, but I gave up on that and made it be a thread-safe queue instead. Putting the mutex directly inside the queue data structure makes it non-composeable. Instead, the recommendation is to use a normal queue protected by an external mutex.