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

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

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

Visibility: public

Requested revision: c8950b5dd549ffe2ead1979528e33c7a94540b8c

Requested commit: c8950b5dd549ffe2ead1979528e33c7a94540b8c

Commit: c8950b5dd549ffe2ead1979528e33c7a94540b8c

Tree: 5fe94c7410ea933ae24fdaad0ba67bcbc8a1dd35

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

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

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