Revert "Task scheduler: Avoid mutex lock in number manipulation functions"
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 10 May 2016 13:43:03 +0000 (15:43 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 10 May 2016 13:43:03 +0000 (15:43 +0200)
commit335274192e3d6c78e58ad2123dbdb7a384f3988b
tree5f3fefe4262751137e0bec1863102bd408bf11cf
parentf501dfb085557038679e40c9d5501ebe33db4aee
Revert "Task scheduler: Avoid mutex lock in number manipulation functions"

Appears mutex was guarateeing number of tasks is not modified at moments
when it's not expected. Removing those mutexes resulted in some hard-to-catch
locks where worker thread were waiting for work by all the tasks were already
done.

This reverts commit a1d8fe052ccd8945f14be5a50bd5af581b89c643.
source/blender/blenlib/intern/task.c