# std.Thread: ResetEvent improvements \(\#11523\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 18f30346291bd2471e07924af161de080935dd60

Requested commit: 18f30346291bd2471e07924af161de080935dd60

Commit: 18f30346291bd2471e07924af161de080935dd60

Tree: 609cdd73aa40f15625f896e79b9420b3e320ddcd

Author: protty

Committer: GitHub

## Message

```
std.Thread: ResetEvent improvements (#11523)

* std: start removing redundant ResetEvents

* src: fix other uses of std.Thread.ResetEvent

* src: add builtin.sanitize_thread for tsan detection

* atomic: add Atomic.fence for proper fencing with tsan

* Thread: remove the other ResetEvent's and rewrite the current one

* Thread: ResetEvent docs

* zig fmt + WaitGroup.reset() fix

* src: fix build issues for ResetEvent + tsan

* Thread: ResetEvent tests

* Thread: ResetEvent module doc

* Atomic: replace llvm *p memory constraint with *m

* panicking: handle spurious wakeups in futex.wait() when waiting for abort()

* zig fmt
```

## Parents

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

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