Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspended scheduling algorithms (work_stealing or shared_work) not notified when work is scheduled from another thread #327

Open
beojan opened this issue Nov 6, 2024 · 0 comments

Comments

@beojan
Copy link

beojan commented Nov 6, 2024

I have a pool of worker threads and I want to schedule fibers onto this pool from the main thread, without running any of these worker fibers on the main thread itself. I'm doing this using the shared_work (or work_stealing) algorithm.

If I set the suspend option to true to prevent the worker threads busy-waiting when they have no work the worker fibers never run because the algorithms on the worker threads aren't notified when work is pushed onto the queue from the main thread.

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

No branches or pull requests

1 participant