C++ code */
| 1052 | # endif |
| 1053 | # ifdef __cplusplus /* C++ code */ |
| 1054 | class SWIG_Python_Thread_Block { |
| 1055 | bool status; |
| 1056 | PyGILState_STATE state; |
| 1057 | public: |
| 1058 | void end() { if (status) { PyGILState_Release(state); status = false;} } |
| 1059 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} |
| 1060 | ~SWIG_Python_Thread_Block() { end(); } |
| 1061 | }; |
| 1062 | class SWIG_Python_Thread_Allow { |
| 1063 | bool status; |
| 1064 | PyThreadState *save; |
nothing calls this directly
no outgoing calls
no test coverage detected