# EventLoop: fix \`std.Io.Condition\` implementation · gitcafe/zig

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

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

Visibility: public

Requested revision: 9a652cc42a9329102b9ec8a984a940ce3c3f6841

Requested commit: 9a652cc42a9329102b9ec8a984a940ce3c3f6841

Commit: 9a652cc42a9329102b9ec8a984a940ce3c3f6841

Tree: dd47bd9821d347408149ac379ecc94d545abb5e7

Author: Jacob Young

Committer: Andrew Kelley

## Message

```
EventLoop: fix `std.Io.Condition` implementation

 1. a fiber can't put itself on a queue that allows it to be rescheduled
 2. allow the idle fiber to unlock a mutex held by another fiber by
    ignoring reschedule requests originating from the idle fiber

```

## Parents

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

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