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 a28b944 commit 30673d5Copy full SHA for 30673d5
c_src/pythonx/pythonx.cpp
@@ -104,7 +104,8 @@ class PyGILGuard {
104
105
~PyGILGuard() {
106
std::cout << "before PyEval_SaveThread " << this->thread_id << std::endl;
107
- PyEval_SaveThread();
+ auto t = PyEval_SaveThread();
108
+ std:: cout << "same state " << (t == thread_states[this->thread_id]) << std::endl;
109
std::cout << "after PyEval_SaveThread " << this->thread_id << std::endl;
110
}
111
};
0 commit comments