Commit 228e568
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 f892f79 commit 228e568
2 files changed
+14
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1613 | 1613 | | |
1614 | 1614 | | |
1615 | 1615 | | |
1616 | | - | |
1617 | | - | |
1618 | 1616 | | |
1619 | 1617 | | |
1620 | | - | |
1621 | | - | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
| 1618 | + | |
1626 | 1619 | | |
1627 | 1620 | | |
1628 | 1621 | | |
| |||
1645 | 1638 | | |
1646 | 1639 | | |
1647 | 1640 | | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
1658 | 1651 | | |
1659 | | - | |
| 1652 | + | |
1660 | 1653 | | |
1661 | 1654 | | |
1662 | 1655 | | |
| |||
| 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