Commit 2305643
committed
Merge bitcoin/bitcoin#27257: refactor, net: End friendship of CNode, CConnman and ConnmanTestMsg
3566aa7 [net] Remove CNode friends (dergoegge)
3eac5e7 [net] Add CNode helper for send byte accounting (dergoegge)
60441a3 scripted-diff: [net] Rename CNode process queue members (dergoegge)
6693c49 [net] Make cs_vProcessMsg a non-recursive mutex (dergoegge)
23d9352 [net] Make CNode msg process queue members private (dergoegge)
897e342 [net] Encapsulate CNode message polling (dergoegge)
cc5cdf8 [net] Deduplicate marking received message for processing (dergoegge)
ad44aa5 [net] Add connection type getter to CNode (dergoegge)
Pull request description:
We should define clear interfaces between CNode, CConnman and PeerManager. This PR makes a small step in that direction by ending the friendship of CNode, CConnman and ConnmanTestMsg. CNode's message processing queue is made private in the process and its mutex is turned into a non-recursive mutex.
ACKs for top commit:
jnewbery:
utACK 3566aa7
vasild:
ACK 3566aa7
theStack:
re-ACK 3566aa7
brunoerg:
re-ACK 3566aa7
Tree-SHA512: 26b87da5054e32401b693b2904e9c5f40e35a53937c0b6cf44b8597034ad07bacf27d87cdffc54d3e7ccfebde4231ef30a38d326f88cc18133bbb34688ead5674 files changed
+73
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
| 920 | + | |
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
| 1095 | + | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
| |||
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
| 1331 | + | |
1343 | 1332 | | |
1344 | 1333 | | |
1345 | 1334 | | |
| |||
1722 | 1711 | | |
1723 | 1712 | | |
1724 | 1713 | | |
1725 | | - | |
| 1714 | + | |
1726 | 1715 | | |
1727 | 1716 | | |
1728 | 1717 | | |
| |||
2806 | 2795 | | |
2807 | 2796 | | |
2808 | 2797 | | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
2809 | 2829 | | |
2810 | 2830 | | |
2811 | 2831 | | |
| |||
2840 | 2860 | | |
2841 | 2861 | | |
2842 | 2862 | | |
2843 | | - | |
| 2863 | + | |
2844 | 2864 | | |
2845 | 2865 | | |
2846 | 2866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | 350 | | |
354 | 351 | | |
355 | 352 | | |
| |||
376 | 373 | | |
377 | 374 | | |
378 | 375 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | 376 | | |
384 | 377 | | |
385 | 378 | | |
| |||
417 | 410 | | |
418 | 411 | | |
419 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
420 | 437 | | |
421 | 438 | | |
422 | 439 | | |
| |||
602 | 619 | | |
603 | 620 | | |
604 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
605 | 626 | | |
606 | 627 | | |
607 | 628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4860 | 4860 | | |
4861 | 4861 | | |
4862 | 4862 | | |
4863 | | - | |
4864 | | - | |
4865 | 4863 | | |
4866 | 4864 | | |
4867 | 4865 | | |
| |||
4889 | 4887 | | |
4890 | 4888 | | |
4891 | 4889 | | |
4892 | | - | |
4893 | | - | |
4894 | | - | |
4895 | | - | |
4896 | | - | |
4897 | | - | |
4898 | | - | |
4899 | | - | |
4900 | | - | |
4901 | | - | |
4902 | | - | |
| 4890 | + | |
| 4891 | + | |
| 4892 | + | |
| 4893 | + | |
| 4894 | + | |
| 4895 | + | |
| 4896 | + | |
| 4897 | + | |
4903 | 4898 | | |
4904 | 4899 | | |
4905 | 4900 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 69 | + | |
81 | 70 | | |
82 | 71 | | |
83 | 72 | | |
| |||
0 commit comments