# std.Io.Mutex: fix tryLock · gitcafe/zig

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

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

Visibility: public

Requested revision: 60ac4e78ebb6de925b7bd1dc8571af55d096f964

Requested commit: 60ac4e78ebb6de925b7bd1dc8571af55d096f964

Commit: 60ac4e78ebb6de925b7bd1dc8571af55d096f964

Tree: 5985d84523871d9be9151f8a8589abfd70a11154

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Mutex: fix tryLock

`@cmpxchgWeak` can return the expected value sometimes.

```

## Parents

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

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