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

Multithreading/Multitasking #33

Closed
4 tasks done
vifino opened this issue Jun 4, 2018 · 2 comments
Closed
4 tasks done

Multithreading/Multitasking #33

vifino opened this issue Jun 4, 2018 · 2 comments
Labels
enhancement Enhancement suggestions to the project.

Comments

@vifino
Copy link
Member

vifino commented Jun 4, 2018

Since f991962 we got a thread/task abstraction.
So, the next natural step is to parallelize things.

I believe this should be done in a rather generic fashion, rather than hardcode things. Focussing on reusability is quite important.

  • Mutex abstraction
  • Task abstraction
  • Worker pool
    • Start tasks on startup, add jobs (ie function and ctx) to queue when needed, wait.
  • Add little wrappers for pixel setting for loops.
    • The wrapper function can be easily reused this way, it'll be in the core so the compiler might be able to inline some functions.
@vifino vifino added the enhancement Enhancement suggestions to the project. label Jun 4, 2018
@vifino
Copy link
Member Author

vifino commented Jun 4, 2018

The taskpool branch has some stuff regarding the worker pool. It's not done and it's not tested.

This was referenced Jun 5, 2018
vifino added a commit that referenced this issue Jun 6, 2018
@vifino
Copy link
Member Author

vifino commented Jun 6, 2018

Now the taskpool works.

@vifino vifino closed this as completed in #39 Jun 7, 2018
@vifino vifino mentioned this issue Jun 12, 2018
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement suggestions to the project.
Projects
None yet
Development

No branches or pull requests

1 participant