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