# Io.Threaded: add ParkingMutex, and deal with spurious unparks on NetBSD · gitcafe/zig

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

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

Visibility: public

Requested revision: 6d6532dd9eb862dfd6e59ceed5c762342d2cc0d5

Requested commit: 6d6532dd9eb862dfd6e59ceed5c762342d2cc0d5

Commit: 6d6532dd9eb862dfd6e59ceed5c762342d2cc0d5

Tree: a6fe1596bb142355c8b808ba56e20c37c8598258

Author: Matthew Lugg

Committer: Matthew Lugg

## Message

```
Io.Threaded: add ParkingMutex, and deal with spurious unparks on NetBSD

We can't use Io.Mutex in parking_futex; instead, we need a simple
parking-based mutex implementation. That's fairly simple to do.

Also deal with spurious unparks on NetBSD, where they *can* happen (as
opposed to Windows, where they cannot).

```

## Parents

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

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