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

thread pipeline task #1

Open
vladak opened this issue Jan 4, 2019 · 0 comments
Open

thread pipeline task #1

vladak opened this issue Jan 4, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@vladak
Copy link
Member

vladak commented Jan 4, 2019

Here's an idea I got from a (unanswered) stackoverflow.com question:

  • there is a processing step that requires N stages however cannot be completed in given time slot
    (think soft-realtime system such as video processing) so each stage will be performed in each slot
    at the expense of N slot delay (which is normally acceptable e.g. when doing 1/30 frames and N <= 6 - people usually don't recognize difference between 24 frames/sec and 30 frames/sec)

    • implement a "clock" thread that will present the results and N processing threads

      • each thread will get an item and perform the next stage of processing.
        If the item reached final state, it will be handed out to the "clock" thread.
    • design the API so that this is useable as a library

  • the item can be typedef'd so that it serves as a wrapper of another data structure (void *)

@vladak vladak added the enhancement New feature or request label Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant