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

Idle interface #9

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Idle interface #9

wants to merge 3 commits into from

Conversation

JoelFilho
Copy link
Owner

First tentative for the pipeline idling interface. Closes #3.

Some questions need to be answered before merging:

  • Is it possible to have false positives on wait_until_idle(), between removing an item internally on the queue, and exiting a worker thread's idle state? (TODO: either demonstrate with a test case or show why it can't)
  • Does the O(1) lookup on the bitset makes it better than an array of atomic boolean? Is copy-and-swap much slower than basic false sharing? Is there a better lock-free alternative? (TODO: benchmark, analyze the possibility of race conditions and invalid states)
  • This incurs an overhead every iteration on each thread. Should it be opt-in only? (TODO: benchmark)

- preventing doctest target installation without relying on cache
Initial tentative for the idle interface
@JoelFilho JoelFilho added the work in progress Issue currently being worked on label Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work in progress Issue currently being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pipeline idling
1 participant