threadpool: fix a race condition in error handling#4116
Conversation
|
Ahhhh! Great spot, yes this was a dumb race condition. Returning the error from |
19a3436 to
60bf929
Compare
pool->error until all workers have completed60bf929 to
0e7811f
Compare
|
Good idea. Addressed in the latest revision. |
|
Do you need the |
|
I wasn't sure about that one, let me try to remove it. It was inspired by |
Fixes a regression introduced in commit 9248ab7 (PR libvips#3105).
0e7811f to
c8ee345
Compare
|
... you're right, it doesn't matter that |
|
Looks great! |
Fixes a regression introduced in commit 9248ab7 (PR #3105).
Targets the 8.15 branch.
Context: #4107 (comment).