# std.debug: lock stderr mutex when panicking · gitcafe/zig

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

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

Visibility: public

Requested revision: 55a9ea250cf2aad58f3c4eb49ac6ee8d2b6f5cff

Requested commit: 55a9ea250cf2aad58f3c4eb49ac6ee8d2b6f5cff

Commit: 55a9ea250cf2aad58f3c4eb49ac6ee8d2b6f5cff

Tree: c2f20b3dc137fec4907f825de35c8208b19dc574

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.debug: lock stderr mutex when panicking

The doc comments for this global said:
"Locked to avoid interleaving panic messages from multiple threads."

Huh? There's already a mutex for that, it's the stderr mutex. Lock that
one instead.

```

## Parents

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

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