Task scheduler: Initial implementation of local tasks queues
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 6 Mar 2017 14:40:05 +0000 (15:40 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 7 Mar 2017 16:32:01 +0000 (17:32 +0100)
commit55c2cd85f0bcf39820013c6ebba1d375d078323d
treee6b04d9ff73aea256f434447d8f683773adfe783
parent2f722f1a4966f4eae695521bbcf3d5b2bf02a8dd
Task scheduler: Initial implementation of local tasks queues

The idea is to allow some amount of tasks to be pushed from working
thread to it's local queue, so we can acquire some work without doing
whole mutex lock.

This should allow us to remove some hacks from depsgraph which was
added there to keep threads alive.
source/blender/blenlib/intern/task.c