Skip to content

Commit 30673d5

Browse files
committed
Up
1 parent a28b944 commit 30673d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c_src/pythonx/pythonx.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ class PyGILGuard {
104104

105105
~PyGILGuard() {
106106
std::cout << "before PyEval_SaveThread " << this->thread_id << std::endl;
107-
PyEval_SaveThread();
107+
auto t = PyEval_SaveThread();
108+
std:: cout << "same state " << (t == thread_states[this->thread_id]) << std::endl;
108109
std::cout << "after PyEval_SaveThread " << this->thread_id << std::endl;
109110
}
110111
};

0 commit comments

Comments
 (0)