[PATCH v1] Worker threads stop too early

Attached patch fixes a bug introduced with r115. Bug description: Each worker thread stops when it retrieves the last element for one area. This means that only (max-threads-1) areas are really written until the last element. For the other areas some elements are remaining in the working queues. The patch ensures that a worker thread is finished only if there is no more unfinished area. WanMil

Ouch, looks like I was a bit hasty with my "fix"... Thanks for catching this one.
Attached patch fixes a bug introduced with r115. Bug description: Each worker thread stops when it retrieves the last element for one area. This means that only (max-threads-1) areas are really written until the last element. For the other areas some elements are remaining in the working queues. The patch ensures that a worker thread is finished only if there is no more unfinished area.
WanMil
participants (2)
-
Chris Miller
-
WanMil