Skip to content

Conversation

@NthTensor
Copy link
Owner

This PR moves us back to rayon-style latches, and allows us to wake workers that have gone to sleep waiting for a job to complete when there is new work available.

Forte had a version of this for a long time, but it had trouble with deadlocks and I eventually removed it. This new version rewrites the latch primitive from scratch, uses only simple atomic loads and stores (not CAS operations). I'm also much more confident that it's deadlock free.

@NthTensor NthTensor force-pushed the advanced-sleeping branch 2 times, most recently from 94991df to ae0a54e Compare August 21, 2025 02:46
@NthTensor NthTensor merged commit 2b52a16 into main Aug 21, 2025
4 checks passed
@NthTensor NthTensor deleted the advanced-sleeping branch August 21, 2025 02:50
@NthTensor NthTensor mentioned this pull request Aug 21, 2025
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.

2 participants