# Mutex deadlock detection in debug · gitcafe/zig

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

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

Visibility: public

Requested revision: f38fd388f8446b62945df4d2bfbcff350955bbce

Requested commit: f38fd388f8446b62945df4d2bfbcff350955bbce

Commit: f38fd388f8446b62945df4d2bfbcff350955bbce

Tree: 4020c7590990bfc418fd5a01be6e66f475ce1f1c

Author: IntegratedQuantum

Committer: GitHub

## Message

```
Mutex deadlock detection in debug

Add a debug implementation to Mutex that detects deadlocks caused by calling lock twice in a single thread.
```

## Parents

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

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