Commit cb5ed45
src: refactor stream callbacks and ownership
Instead of setting individual callbacks on streams and tracking
stream ownership through a boolean `consume_` flag, always have
one specific listener object in charge of a stream, and call
methods on that object rather than generic C-style callbacks.
PR-URL: #18334
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent 38fd790 commit cb5ed45Copy full SHA for cb5ed45
File tree
Expand file treeCollapse file tree
18 files changed
+463
-474
lines changedOpen diff view settings
Filter options
- lib
- src
- test/parallel
Expand file treeCollapse file tree
18 files changed
+463
-474
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
680 | 680 | |
681 | 681 | |
682 | 682 | |
683 | | - |
| 683 | + |
684 | 684 | |
685 | 685 | |
686 | 686 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
|
Collapse file
+7-48Lines changed: 7 additions & 48 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
29 | | - |
30 | | - |
31 | 28 | |
32 | 29 | |
33 | 30 | |
34 | 31 | |
35 | 32 | |
36 | 33 | |
37 | 34 | |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | 35 | |
78 | 36 | |
79 | 37 | |
| ||
212 | 170 | |
213 | 171 | |
214 | 172 | |
215 | | - |
216 | | - |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
217 | 177 | |
218 | | - |
219 | 178 | |
220 | 179 | |
221 | 180 | |
222 | 181 | |
223 | 182 | |
224 | 183 | |
225 | | - |
226 | | - |
| 184 | + |
| 185 | + |
227 | 186 | |
228 | 187 | |
229 | 188 | |
230 | 189 | |
231 | 190 | |
232 | 191 | |
233 | 192 | |
234 | | - |
| 193 | + |
235 | 194 | |
236 | 195 | |
237 | 196 | |
|
0 commit comments