4 ms·
Well, what I basically want is a TBB-like task scheduler, but with the ability to pause and resume tasks without running them to completion (to allow tasks to "
by dkersten 15y ago
Well, what I basically want is a TBB-like task scheduler, but with the ability to pause and resume tasks without running them to completion (to allow tasks to "block" - the condition variables in lthread are perfect for this). To do this in plain TBB, I would have to split the task into multiple smaller tasks, since there is no way to suspend a task but have the scheduler still process other tasks and then later resume the task mid-function.
I want to be able to move tasks to other threads so that if a thread runs out of work early it can steal work from a busy thread.
Unfortunately I just realised that for the project I have in mind I won't be able to use lthread as I won't be able to release it under the GPL, but I really like what I see so far and I also really like the sound of lthread_compute, so I am definitely keeping an eye on the project and will likely make use of it in the future.
- halayli 15y agoAh, that's unfortunate. I'll be implementing lthread_compute during the holidays. Keep an eye on that. :)