Commit 75921d2
committed
Auto merge of rust-lang#3886 - RalfJung:freebsd-pthread, r=RalfJung
support pthread primitives on FreeBSD
Fixes rust-lang/miri#3571: makes out pthread implementation support FreeBSD.
FreeBSD sets PHTREAD_MUTEX_DEFAULT == PHTREAD_MUTEX_ERRORCK, so the logic for handling "default vs explicitly set mutex kind" had to be adjusted.
The rest is just some general cleanup of the pthread logic, and I realized that we can enable the std::sync tests on Solarish.File tree
5 files changed
+70
-131
lines changed- src/tools/miri
- ci
- src/shims/unix
- tests
- fail-dep/concurrency
- pass-dep/libc
5 files changed
+70
-131
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments