mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +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.