Commit 1c52425
committed
refactor: streamline CSigSharesManager's message handling and improve thread safety
- Removed unnecessary lastSendTime variable and simplified message sending in HousekeepingThreadMain.
- Enhanced DispatchPendingSigns by swapping the entire vector of pending signs to reduce lock contention and improve performance.
- Updated ActiveContext to start and stop the share manager more efficiently.1 parent e150738 commit 1c52425
2 files changed
Lines changed: 14 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1633 | 1633 | | |
1634 | 1634 | | |
1635 | 1635 | | |
1636 | | - | |
1637 | | - | |
1638 | 1636 | | |
1639 | 1637 | | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
| 1638 | + | |
1646 | 1639 | | |
1647 | 1640 | | |
1648 | 1641 | | |
| |||
1665 | 1658 | | |
1666 | 1659 | | |
1667 | 1660 | | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1678 | 1671 | | |
1679 | | - | |
| 1672 | + | |
1680 | 1673 | | |
1681 | 1674 | | |
1682 | 1675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
0 commit comments