Add "interleave_tasks_here()" calls inside sync libs, togglable with #[cfg(test)] #7074
Labels
A-concurrency
Area: Concurrency
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
This would be sort of a little-kid version of #6957, but also possibly a gateway into getting same off the ground. The idea:
Then inside the concurrency primitives, whenever you wish you could insert an artificial preemption for testing purposes, you would call that.
The text was updated successfully, but these errors were encountered: