Blender Git Commit Log
Git Commits -> Revision 01581d4
Revision 01581d4 by Alexander Gavrilov (master) December 4, 2018, 11:08 (GMT) |
BLI_task: fix queue in work_and_wait, and support resetting. To make the pool more usable for running multiple stages of tasks, fix local queue handling in BLI_task_pool_work_and_wait. Specifically, after the wait loop the local queue should be empty, or the wait part of the function contract isn't fulfilled. Instead, check and run any tasks in queue before the wait loop. Also, add a new function that resets the suspended state of the pool. |
Commit Details:
Full Hash: 01581d4a1eb595f2bb49d4b87aebfa8bd67ceb38
Parent Commit: c86e828
Lines Changed: +17, -1