Commit 7c4b09b
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 1b6cb94 commit 7c4b09b
File tree
18 files changed
+463
-474
lines changed- lib
- src
- test/parallel
18 files changed
+463
-474
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
669 | | - | |
| 669 | + | |
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| 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