Commit 06ca675
Merge ThreadTasks into ThreadState, remove ThreadTasks (#127884)
`ThreadTasks` was a single-entry enum (`TT_CleanupSyncBlock`) backed by
a separate `m_ThreadTasks` field on `Thread`, even though `ThreadState`
had an unused bit (`0x00000020`) and already supported atomic set/reset
via `InterlockedOr`/`InterlockedAnd` on `m_State`. The old code even
contained a TODO noting the two should probably be merged.
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>1 parent 8b06ce0 commit 06ca675
2 files changed
Lines changed: 5 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | | - | |
1294 | 1293 | | |
1295 | | - | |
| 1294 | + | |
1296 | 1295 | | |
1297 | | - | |
1298 | 1296 | | |
1299 | 1297 | | |
1300 | 1298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | 573 | | |
581 | 574 | | |
582 | | - | |
583 | | - | |
584 | 575 | | |
585 | 576 | | |
586 | 577 | | |
| |||
710 | 701 | | |
711 | 702 | | |
712 | 703 | | |
713 | | - | |
| 704 | + | |
714 | 705 | | |
715 | 706 | | |
716 | 707 | | |
717 | 708 | | |
718 | 709 | | |
719 | | - | |
| 710 | + | |
720 | 711 | | |
721 | 712 | | |
722 | 713 | | |
723 | 714 | | |
724 | 715 | | |
725 | | - | |
| 716 | + | |
726 | 717 | | |
727 | 718 | | |
728 | 719 | | |
| |||
915 | 906 | | |
916 | 907 | | |
917 | 908 | | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | 909 | | |
922 | 910 | | |
923 | 911 | | |
| |||
0 commit comments