Commit 1829dc9
Fix thread starvation in test_single_channel_multiple_mpp
The busy-wait loop polling for PaymentClaimed events had no yield,
causing it to continuously acquire ChannelManager locks via
get_and_clear_pending_events(). This could starve the claim_funds
thread of lock access, preventing it from ever queuing the event.
Add a yield_now() call matching the pattern used by the other two
spin loops in this test.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 817ab5e commit 1829dc9
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4715 | 4715 | | |
4716 | 4716 | | |
4717 | 4717 | | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
4718 | 4721 | | |
4719 | 4722 | | |
4720 | 4723 | | |
| |||
0 commit comments