Blender Git Commit Log

Git Commits -> Revision ed5c312

Revision ed5c312 by Sergey Sharybin (master)
April 12, 2017, 16:20 (GMT)
Task scheduler: Prevent race condition for the pools created from non-main thread

We can not re-use anything for such pools, because we will know nothing about whether
the main thread is sleeping or not. So we identify such threads as 0, but we don't
use main thread's TLS.

This fixes dead-locks and crashes reported by Luca when doing playblasts.

Commit Details:

Full Hash: ed5c3121f514389428234e9106926ff67eb366bc
Parent Commit: 699a3e2
Lines Changed: +33, -6

1 Modified Path:

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