Skip to content

Commit db22e40

Browse files
elizarovqwwdfsad
authored andcommitted
Fixed ABA problem in parkedWorkersStack and other stress improvements
* Workers are now numbered starting from 1, zero is used as sentinel * Workers are lazily created (no threads initially) * Close/shutdown of the scheduler also clears state so that subsequent rogue attempt to dispatch anything fails. * Work stealing is more predictable. It starts at random index but then goes linearly via workers array.
1 parent bba6e89 commit db22e40

File tree

3 files changed

+196
-85
lines changed

3 files changed

+196
-85
lines changed

0 commit comments

Comments
 (0)