"example/example-smart-ptr.ref" did not exist on "6e213c9ca04e5f9b1959db5524544bed5fd8f684"
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,10 +52,12 @@ private: ...@@ -52,10 +52,12 @@ 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