C++ code */
| 978 | # endif |
| 979 | # ifdef __cplusplus /* C++ code */ |
| 980 | class SWIG_Python_Thread_Block { |
| 981 | bool status; |
| 982 | PyGILState_STATE state; |
| 983 | public: |
| 984 | void end() { if (status) { PyGILState_Release(state); status = false;} } |
| 985 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} |
| 986 | ~SWIG_Python_Thread_Block() { end(); } |
| 987 | }; |
| 988 | class SWIG_Python_Thread_Allow { |
| 989 | bool status; |
| 990 | PyThreadState *save; |
nothing calls this directly
no outgoing calls
no test coverage detected