Commit d3d5f91f authored by Chuck Atkins's avatar Chuck Atkins

Python: stub out python GIL calls if no thread support

This resolves linking errors when doing static cross-compile builds
against python with no thread support.
parent 959ed938
......@@ -102,6 +102,14 @@ they are system headers. Do NOT add any #undef lines here. */
#undef toupper
/* This logic is borrowed from mpi4py/vtkmpi4py/src/atimport.h */
#undef PyGILState_Ensure
#define PyGILState_Ensure() ((PyGILState_STATE)0)
#undef PyGILState_Release
#define PyGILState_Release(state) (state)=((PyGILState_STATE)0)
// Description:
// RAII class to manage Python threading using GIL (Global Interpreter Lock).
// GIL is locked at object creation and unlocked at destruction.
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