Blender Git Loki

Git Commits -> Revision fc46035

Revision fc46035 by Sybren A. Stüvel (master)
September 9, 2021, 12:27 (GMT)
Depsgraph: release GIL when evaluating the depsgraph

Evaluating the dependency graph potentially executes Python code when
evaluating drivers. In specific situations (see T91046) this could deadlock
Blender entirely. Temporarily releasing the GIL when evaluating the depsgraph
resolves this.

Calling the `BPy_BEGIN_ALLOW_THREADS` macro is relatively safe, as it's
a no-op when the current thread does not have the GIL.

Developed in collaboration with @sergey

Manifest task: T91046

Commit Details:

Full Hash: fc460351170478e712740ae1917a2e24803eba3b
Parent Commit: da50cd8
Lines Changed: +20, -0

2 Modified Paths:

/source/blender/depsgraph/CMakeLists.txt (+7, -0) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval.cc (+13, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021