We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a86b6b4 commit 21d360dCopy full SHA for 21d360d
softIocApp/PythonSupport.c
@@ -30,6 +30,7 @@ const char *get_EPICS_BASE(void)
30
* and pass them back to the Python layer. */
31
PyObject *get_DBF_values(void)
32
{
33
+ PyGILState_STATE gstate = PyGILState_Ensure();
34
PyObject *dict = PyDict_New();
35
ADD_ENUM(dict, DBF_STRING);
36
ADD_ENUM(dict, DBF_CHAR);
@@ -47,6 +48,7 @@ PyObject *get_DBF_values(void)
47
48
ADD_ENUM(dict, DBF_OUTLINK);
49
ADD_ENUM(dict, DBF_FWDLINK);
50
ADD_ENUM(dict, DBF_NOACCESS);
51
+ PyGILState_Release(gstate);
52
return dict;
53
}
54
0 commit comments