Commit cdb5a644 authored by whitlocb's avatar whitlocb
Browse files

I fixed a Python crash related to user-defined callbacks.



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@11542 18c085ea-50e0-402c-830e-de6fd14e8384
parent 75b10670
......@@ -22,6 +22,7 @@
<li>Symbols needed by "import visit" in a Python interpreter have been exposed so they are not hidden by default when building with visibility=hidden.</li>
<li>The visit.so and visitmodule.so Python modules now are installed with $ORIGIN rpath so their dependent shared libraries can be found when Python imports the modules.</li>
<li>A couple of bugs were corrected with the reading of unstructured meshes with polyhedral elements in the Silo database reader.</li>
<li>The visit.so Python module used by "import visit" now contains additional initialization to prevent crashes when executing user-defined callback functions.</li>
</ul>
<p><b><font size="4">Enhancements in version 2.0.1</font></b></p>
<ul>
......
......@@ -690,6 +690,10 @@ static PyMethodDef visit_methods[] = {
* Brad Whitlock, Web Feb 3 10:21:23 PDT 2010
* Always make the initvisit function visible.
*
* Brad Whitlock, Wed Jun 2 13:32:10 PDT 2010
* Make a call to init threads since that creates the global interpreter
* lock that we need later for callbacks to work.
*
* ***************************************************************************/
void
......@@ -705,6 +709,9 @@ initvisit(void)
memset(moduleState, 0, sizeof(VisItModuleState));
}
/* Make sure that threads are init'd */
PyEval_InitThreads();
/* Add the VisIt module to Python. Note that we're passing just a
* couple of methods and then the interface that we load will
* get the rest of the functions.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment