Blender Git Loki
Git Commits -> Revision 952afbf
Revision 952afbf by Bastien Montagne (master) November 2, 2015, 15:42 (GMT) |
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. |
Commit Details:
Full Hash: 952afbf9168c8601e61fa64ffb37e6d93f1d3d61
Parent Commit: ba5d6f5
Lines Changed: +13, -2
1 Modified Path:
/source/blender/blenlib/intern/task.c (+13, -2) (Diff)