Commit 87e7030
committed
[wasm][stdlib] Don't use <thread> sleep API with swift-threading-package=none
Unfortunately `sleep_until` is defined under <thread> header even though
it does not use thread feature at all with `std::chrono::steady_clock`.
The <thread> header in libcxx is not available when thread feature is
disabled, so we need to fallback to nanosleep for the case.1 parent 06984b4 commit 87e7030
1 file changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
198 | 220 | | |
199 | 221 | | |
200 | 222 | | |
| |||
211 | 233 | | |
212 | 234 | | |
213 | 235 | | |
214 | | - | |
| 236 | + | |
215 | 237 | | |
216 | 238 | | |
217 | 239 | | |
| |||
0 commit comments