Skip to content

Fix schedule race cond which causes a hang - #61

Merged
nitely merged 1 commit into
status-im:stablefrom
nitely:fix_schedule_wait
Aug 13, 2026
Merged

nitely merged 1 commit into
status-im:stablefrom
nitely:fix_schedule_wait

Conversation

@nitely

@nitely nitely commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Fix peek+push schedule race cond (which causes a hang) by doing peek, push, then re-check whether the queue got drained in between. Remove peek and move the check inside push to keep the same perf.

I submitted the fix to constantine as well mratsim/constantine#630

@nitely nitely changed the title Fix schedule race cond Fix schedule race cond which causes a hang Aug 13, 2026
@nitely
nitely force-pushed the fix_schedule_wait branch from dbc948b to 8211a95 Compare August 13, 2026 19:02
@nitely
nitely marked this pull request as ready for review August 13, 2026 19:03
@nitely
nitely enabled auto-merge (squash) August 13, 2026 19:03
@nitely
nitely disabled auto-merge August 13, 2026 19:05
@nitely
nitely enabled auto-merge (squash) August 13, 2026 19:06
@nitely
nitely disabled auto-merge August 13, 2026 19:18
@nitely
nitely force-pushed the fix_schedule_wait branch from 8211a95 to a7190c3 Compare August 13, 2026 19:22
@nitely
nitely enabled auto-merge (squash) August 13, 2026 19:33
@nitely
nitely merged commit f01957f into status-im:stable Aug 13, 2026
28 checks passed
@nitely
nitely deleted the fix_schedule_wait branch August 13, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant