# std: remove atomic.Queue · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/edb2f72988cd180c5d87b03481fa1c20b3325968)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: edb2f72988cd180c5d87b03481fa1c20b3325968

Requested commit: edb2f72988cd180c5d87b03481fa1c20b3325968

Commit: edb2f72988cd180c5d87b03481fa1c20b3325968

Tree: 572453d47b4600af13dc6ce5cebb3f8f3879c0bf

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: remove atomic.Queue

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.

```

## Parents

- [6bd97ab640a53836c4353aa904d59cd164417141](https://git.cafe/gitcafe/zig/commit/6bd97ab640a53836c4353aa904d59cd164417141?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/edb2f72988cd180c5d87b03481fa1c20b3325968?format=markdown)
