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:
pywrite(line);
pyflush();
// Placed inside gil_scoped_aquire as a mutex to avoid a race
setp(pbase(), epptr());
}
setp(pbase(), epptr());
}
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