Repository navigation
Commit 3dc04b1
Prevent network shutdown queue starvation
Use a kernel stop event with MsgWaitForMultipleObjects so callback refresh traffic cannot prevent listener termination or make Stop hang after a failed PostThreadMessage.
Verified at:
- lib/pal/desktop/NetworkDetector.cpp
- lib/pal/desktop/NetworkDetector.hpp
Files changed:
- lib/pal/desktop/NetworkDetector.cpp
- lib/pal/desktop/NetworkDetector.hpp
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent fa09281 commit 3dc04b1
2 files changed
Lines changed: 52 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
227 | | - | |
| 226 | + | |
228 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
229 | 252 | | |
230 | 253 | | |
231 | 254 | | |
232 | 255 | | |
233 | 256 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | 257 | | |
238 | | - | |
| 258 | + | |
| 259 | + | |
239 | 260 | | |
240 | | - | |
241 | | - | |
242 | 261 | | |
243 | 262 | | |
244 | 263 | | |
| |||
337 | 356 | | |
338 | 357 | | |
339 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
340 | 367 | | |
341 | 368 | | |
342 | 369 | | |
| |||
382 | 409 | | |
383 | 410 | | |
384 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
385 | 419 | | |
386 | 420 | | |
387 | 421 | | |
| |||
400 | 434 | | |
401 | 435 | | |
402 | 436 | | |
403 | | - | |
404 | | - | |
| 437 | + | |
405 | 438 | | |
406 | | - | |
| 439 | + | |
407 | 440 | | |
408 | 441 | | |
409 | 442 | | |
410 | 443 | | |
411 | 444 | | |
412 | 445 | | |
| 446 | + | |
| 447 | + | |
413 | 448 | | |
414 | 449 | | |
415 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments