Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
732bf88d
Commit
732bf88d
authored
Jan 26, 2021
by
Henry Fredrick Schreiner
Committed by
Henry Schreiner
Jan 26, 2021
Browse files
fix: avoid changing class outside of GIL
parent
dff9b3b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
include/pybind11/iostream.h
include/pybind11/iostream.h
+3
-1
No files found.
include/pybind11/iostream.h
View file @
732bf88d
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment