Commit 5481079
committed
Keep wk_lock held during step commands to prevent worker ping-pong
When multiple independent workers share the well-known lock, releasing
it on step/next/finish allowed a sibling worker to grab the lock before
the stepping worker could re-enter its subsession. This caused the user
to need 2 next commands to actually advance — the first one would
inadvertently drive the other worker.
Only release wk_lock on :continue, which is expected to run for an
extended period. Step commands hold the lock so the same worker
immediately re-enters without yielding.1 parent 20f70ea commit 5481079
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1806 | 1806 | | |
1807 | 1807 | | |
1808 | 1808 | | |
1809 | | - | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1810 | 1812 | | |
1811 | 1813 | | |
1812 | 1814 | | |
| |||
0 commit comments