=== PyNodes ===

* Make PyNodes work with threaded renderer. This patch is by Willian. He has worked hard on getting this sorted out - now you should be able to render with PyNodes AND multiple threads.
This commit is contained in:
Nathan Letwory
2008-02-23 12:05:28 +00:00
parent 206021113d
commit 012f0a336c
7 changed files with 368 additions and 68 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: Window.c 12813 2007-12-07 09:51:02Z campbellbarton $
* $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -512,6 +512,8 @@ static void getSelectedFile( char *name )
pycallback = script->py_browsercallback;
if (pycallback) {
PyGILState_STATE gilstate = PyGILState_Ensure();
result = PyObject_CallFunction( pycallback, "s", name );
if (!result) {
@@ -525,6 +527,8 @@ static void getSelectedFile( char *name )
/* else another call to selector was made inside pycallback */
Py_DECREF(pycallback);
PyGILState_Release(gilstate);
}
return;