Commit 732bf88d by Henry Fredrick Schreiner Committed by Henry Schreiner

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