Blender Git Loki

Git Commits -> Revision 87dd480

Revision 87dd480 by Willian Padovani Germano (master)
February 24, 2008, 16:19 (GMT)
== PyNodes ==

Small update to where a PyGILState_Ensure() call is made.

--

Let me use this commit to mention a couple things related to this change to make Python thread-safe in Blender:

1) This page explains the changes: http://wiki.blender.org/index.php/BlenderDev/BPythonAPI/Threads

2) If you experience hangs (deadlocks) when running anything related to Python in Blender, the related part in the code may need a proper Ensure/Release block, as explained in the above link.

From Joshua (aligorith)'s previous commit to this file:

"* various problems related to gilstate calls being added in strange places (could someone familiar with python double check that they're in the right places now)?"

I checked the two places you fixed, second one is ok, the first one needed to be before the call to create a py dict -- done. Thanks for catching them!

Commit Details:

Full Hash: 87dd4809edd4c6b1c13746ad54e6f4614c515e0a
SVN Revision: 13848
Parent Commit: 7098c1b
Lines Changed: +2, -2

1 Modified Path:

/source/blender/python/BPY_interface.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021