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

2 Modified Paths:

/source/blender/blenlib/BLI_task.h (+2, -0) (Diff)
/source/blender/blenlib/intern/task.c (+15, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021