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

Pipeline idling #3

Open
2 tasks
JoelFilho opened this issue May 21, 2020 · 0 comments · May be fixed by #9
Open
2 tasks

Pipeline idling #3

JoelFilho opened this issue May 21, 2020 · 0 comments · May be fixed by #9
Labels
enhancement New feature or request work in progress Issue currently being worked on
Milestone

Comments

@JoelFilho
Copy link
Owner

Add new functionality to the pipeline interface:

  • Allow checking whether the pipeline is idle with an idle() member function
    • Requires each worker thread to notify whether it's idling (waiting for input, or a paused producer)
    • May require separating the pop_unless(...) member function in wait_unless(...) and try_pop() in order to not degrade performance by updating idle state every time (e.g. false sharing)
  • Allow blocking the main thread until completion, similar to TBB flow graph's wait_for_all
    • In order to do it while actually blocking, without timer-based wake-ups, use a "listener" class,
@JoelFilho JoelFilho added the enhancement New feature or request label May 21, 2020
@JoelFilho JoelFilho added this to the v1.0 Release milestone May 21, 2020
@JoelFilho JoelFilho added the work in progress Issue currently being worked on label May 31, 2020
@JoelFilho JoelFilho linked a pull request Jun 8, 2020 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request work in progress Issue currently being worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant