"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "676e29885bdfc10a93aeccb97dadc15070bcd570"
Commit 732bf88d authored by Henry Fredrick Schreiner's avatar Henry Fredrick Schreiner Committed by Henry Schreiner
Browse files

fix: avoid changing class outside of GIL

parent dff9b3b4
...@@ -52,9 +52,11 @@ private: ...@@ -52,9 +52,11 @@ private:
pywrite(line); pywrite(line);
pyflush(); pyflush();
// Placed inside gil_scoped_aquire as a mutex to avoid a race
setp(pbase(), epptr());
} }
setp(pbase(), epptr());
} }
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment