Skip to content

Commit

Permalink
Up
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Feb 25, 2025
1 parent a28b944 commit 30673d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c_src/pythonx/pythonx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ class PyGILGuard {

~PyGILGuard() {
std::cout << "before PyEval_SaveThread " << this->thread_id << std::endl;
PyEval_SaveThread();
auto t = PyEval_SaveThread();
std:: cout << "same state " << (t == thread_states[this->thread_id]) << std::endl;
std::cout << "after PyEval_SaveThread " << this->thread_id << std::endl;
}
};
Expand Down

0 comments on commit 30673d5

Please sign in to comment.