Commit a2eacf8
committed
fix(zaparoo): yield to scheduler instead of usleep during VT wait
switch_to_launcher_vt() ran in the poll cothread. usleep() in libco's
cooperative single-thread model sleeps the whole process, so the bounded VT
wait stalled both cothreads (no UI/OSD, no poll) for up to 500ms. Replace the
fixed usleep retry loop with a wall-clock deadline (GetTimer/CheckTimer) plus
scheduler_yield(), keeping the same bound while staying cooperative.1 parent 01f8cfe commit a2eacf8
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
485 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
486 | 490 | | |
487 | 491 | | |
488 | 492 | | |
489 | | - | |
| 493 | + | |
| 494 | + | |
490 | 495 | | |
491 | 496 | | |
492 | 497 | | |
| |||
0 commit comments