Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-11-02 18:35:53 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-11-02 18:42:39 +0300
commit952afbf9168c8601e61fa64ffb37e6d93f1d3d61 (patch)
tree495bfc7421935230963d87f52992e30b023e069e /source/blender/blenlib/BLI_task.h
parentba5d6f5b6b3251a56b924f3b1c448068110a72f2 (diff)
BLI_task: Fix/enhance logic of exiting worker threads.
In previous code, worker would exit in case it gets awoken from a condition_wait() and task queue is empty. However, there may be spurious wake up (either due to pthread itself, or to some race condition between workers) that would lead to wrongly exiting a worker before we actually exit the whole scheduler. See code for more details.
Diffstat (limited to 'source/blender/blenlib/BLI_task.h')
0 files changed, 0 insertions, 0 deletions