# std.Thread: Mutex and Condition improvements \(\#11497\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 963ac60918b39cafdda3cb99eff4cd9d20edd839

Requested commit: 963ac60918b39cafdda3cb99eff4cd9d20edd839

Commit: 963ac60918b39cafdda3cb99eff4cd9d20edd839

Tree: 8b480e6c1c01c11758f47b1126c53e75a339d1a1

Author: protty

Committer: GitHub

## Message

```
std.Thread: Mutex and Condition improvements (#11497)

* Thread: minor cleanups

* Thread: rewrite Mutex

* Thread: introduce Futex.Deadline

* Thread: Condition rewrite + cleanup

* Mutex: optimize lock fast path

* Condition: more docs

* Thread: more mutex + condition docs

* Thread: remove broken Condition test

* Thread: zig fmt

* address review comments + fix Thread.DummyMutex in GPA

* Atomic: disable bitRmw x86 inline asm for stage2

* GPA: typo mutex_init

* Thread: remove noalias on stuff

* Thread: comment typos + clarifications
```

## Parents

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

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