Commit 568f04b
committed
Add fallback impls for sleep and time functions
- `GetSystemTimePreciseAsFileTime`: fall back to `GetSystemTimeAsFileTime`
- `GetSystemTimeAsFileTime`: fall back to `GetSystemTime` and `SystemTimeToFileTime`
- (only necessary for NT 3.1)
- `SwitchToThread`: fall back to `Sleep(0)`
- `CreateWaitableTimerExW`: optional import, fallback already in place1 parent 738e445 commit 568f04b
File tree
3 files changed
+49
-1
lines changed- library/std/src/sys/pal/windows
- c
3 files changed
+49
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2491 | 2491 | | |
2492 | 2492 | | |
2493 | 2493 | | |
| 2494 | + | |
2494 | 2495 | | |
2495 | 2496 | | |
2496 | 2497 | | |
| |||
2616 | 2617 | | |
2617 | 2618 | | |
2618 | 2619 | | |
| 2620 | + | |
2619 | 2621 | | |
2620 | 2622 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| |||
3056 | 3058 | | |
3057 | 3059 | | |
3058 | 3060 | | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
3059 | 3073 | | |
3060 | 3074 | | |
3061 | 3075 | | |
| |||
0 commit comments