# std: remove atomic.Stack · gitcafe/zig

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

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

Visibility: public

Requested revision: 6bd97ab640a53836c4353aa904d59cd164417141

Requested commit: 6bd97ab640a53836c4353aa904d59cd164417141

Commit: 6bd97ab640a53836c4353aa904d59cd164417141

Tree: 071147f1ae0a3b0c2559834c77343bc86a88a31a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: remove atomic.Stack

This was originally supposed to be a lock-free stack, but I gave up on
that and made it be a thread-safe stack which is implemented poorly
using spin locks. Nobody should use this data structure.

The alternative is a normal stack protected by a mutex.

```

## Parents

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

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