# std.atomic: use spinlocks · gitcafe/zig

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

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

Visibility: public

Requested revision: 9751a0ae045110fb615c866b94ad47680b9c48c7

Requested commit: 9751a0ae045110fb615c866b94ad47680b9c48c7

Commit: 9751a0ae045110fb615c866b94ad47680b9c48c7

Tree: ee995b6ee80e52de40ef5961589b8e3275832328

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.atomic: use spinlocks

the lock-free data structures all had ABA problems and
std.atomic.Stack had a possibility to load an unmapped memory address.

```

## Parents

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

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