@iss I've applied the changes you and merged Blender's main branch into this one. I ran a build and test this morning and it works as expected.
Thanks a bunch for the review pointers.
@iss I sorted out the conflict and applied most of the changes you requested.
I kept setting the pj->running = false
inside the lock and the check in the function that pushes new audio…
I can't directly break there because the mutex is locked at that point.
The options is to either have BLI_mutex_unlock call at each "break out" point or to just have the if-elseif-else clause…
But don't we need to lock the struct to access the running variable? It could be changed concurrently by the thread running the WM job.
@iss I just saw buildbot found a merge conflict here.
Does blender require any special process for this sort of stuff or can I just go ahead and merge master into this branch to sort out the…
Alright, this took me a while but it's finally working as I wanted.
Context
Just using the event notifier doesn't work because in [sequencer_draw.c](https://projects.blender.org/Yup_Lucas/…
@iss the current state in this PR sort of works, but I think there's still a race condition I wasn't able to trigger.
What I think can happen is this:
- The PreviewJob thread sees that all…
Following up on this:
I read through sequencer_thumbnails.c but…
Just an update here: No luck with the TBB docs.
There doesn't seem to be a way to just poll the threads.
I'm working on the changes to make it so that the PreviewJob waits on a condition…