Skip to content

Commit 149020e

Browse files
committed
Up
1 parent ad71326 commit 149020e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

c_src/pythonx/pythonx.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class PyGILGuard {
9191
// Note that PyThreadState_New does not require GIL to be held.
9292
std::cout << "before PyThreadState_New " << this->thread_id << std::endl;
9393
state = PyThreadState_New(interpreter_state);
94+
thread_states[this->thread_id] = state;
9495
std::cout << "after PyThreadState_New " << this->thread_id << std::endl;
9596
} else {
9697
state = thread_states[this->thread_id];

0 commit comments

Comments
 (0)