Blender Git Loki
Git Commits -> Revision f18373a
Revision f18373a by Ray molenkamp (master) May 25, 2019, 23:18 (GMT) |
Fix: BLI_task_test deadlock on windows. This patch makes BLI_task_scheduler_create wait for all worker threads to have started before returning to caller. For very short workloads (BLI_taks_test) there is the chance that the worker threads have not fully started yet, and the main thread is calling pthread_join at the same time as pthread_setspecific is being called on the worker threads which causes a deadlock on pthreads4w. Differential Revision: https://developer.blender.org/D4936 Reviewed By: mont29, sergey, brecht |
Commit Details:
Full Hash: f18373a9ab1ae1534f311af92e03b9c6db1a0cc8
Parent Commit: 36ae495
Lines Changed: +29, -0
1 Modified Path:
/source/blender/blenlib/intern/task.c (+29, -0) (Diff)