Commit dc18133
committed
Set ThreadHandle state to Running in parent thread after spawn
Like CPython's ThreadHandle_start, set RUNNING state in the parent
thread immediately after spawn() succeeds, rather than in the child.
This eliminates a race where join() could see Starting state if called
before the child thread executes.
Also reverts the macOS skip for test_start_new_thread_failed since the
root cause is fixed.1 parent b44dca1 commit dc18133
1 file changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1581 | 1581 | | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
| 1584 | + | |
1587 | 1585 | | |
1588 | 1586 | | |
1589 | 1587 | | |
| |||
1657 | 1655 | | |
1658 | 1656 | | |
1659 | 1657 | | |
1660 | | - | |
1661 | | - | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
1662 | 1674 | | |
1663 | 1675 | | |
1664 | 1676 | | |
| |||
0 commit comments