Commit 1ee0f94
authored
On Unix, if the sem_clockwait() function is available in the C
library (glibc 2.30 and newer), the threading.Lock.acquire() method
now uses the monotonic clock (time.CLOCK_MONOTONIC) for the timeout,
rather than using the system clock (time.CLOCK_REALTIME), to not be
affected by system clock changes.
configure now checks if the sem_clockwait() function is available.
1 parent 3e1c5d9 commit 1ee0f94
File tree
6 files changed
+160
-72
lines changed- Doc/whatsnew
- Misc/NEWS.d/next/Library
- Python
6 files changed
+160
-72
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
242 | 252 | | |
243 | 253 | | |
244 | 254 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
464 | 472 | | |
465 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
466 | 477 | | |
467 | 478 | | |
| 479 | + | |
468 | 480 | | |
469 | 481 | | |
470 | 482 | | |
471 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
472 | 488 | | |
473 | | - | |
| 489 | + | |
474 | 490 | | |
| 491 | + | |
475 | 492 | | |
476 | 493 | | |
477 | 494 | | |
| |||
486 | 503 | | |
487 | 504 | | |
488 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
489 | 509 | | |
490 | 510 | | |
491 | 511 | | |
| |||
494 | 514 | | |
495 | 515 | | |
496 | 516 | | |
| 517 | + | |
497 | 518 | | |
498 | 519 | | |
499 | 520 | | |
500 | 521 | | |
501 | 522 | | |
502 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
503 | 527 | | |
| 528 | + | |
| 529 | + | |
504 | 530 | | |
505 | 531 | | |
506 | | - | |
| 532 | + | |
507 | 533 | | |
| 534 | + | |
508 | 535 | | |
509 | 536 | | |
510 | 537 | | |
| |||
0 commit comments