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 ad71326 commit 149020eCopy full SHA for 149020e
c_src/pythonx/pythonx.cpp
@@ -91,6 +91,7 @@ class PyGILGuard {
91
// Note that PyThreadState_New does not require GIL to be held.
92
std::cout << "before PyThreadState_New " << this->thread_id << std::endl;
93
state = PyThreadState_New(interpreter_state);
94
+ thread_states[this->thread_id] = state;
95
std::cout << "after PyThreadState_New " << this->thread_id << std::endl;
96
} else {
97
state = thread_states[this->thread_id];
0 commit comments