Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
047ce8c4
"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "f64ff575d776283de12b01a017a19665928e9b48"
Commit
047ce8c4
authored
Jun 11, 2019
by
Henry Schreiner
Committed by
Wenzel Jakob
Jun 11, 2019
Browse files
Fix iostream when used with nogil (#1368)
parent
95f750a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
include/pybind11/iostream.h
include/pybind11/iostream.h
+5
-2
No files found.
include/pybind11/iostream.h
View file @
047ce8c4
...
@@ -43,8 +43,11 @@ private:
...
@@ -43,8 +43,11 @@ private:
// This subtraction cannot be negative, so dropping the sign
// This subtraction cannot be negative, so dropping the sign
str
line
(
pbase
(),
static_cast
<
size_t
>
(
pptr
()
-
pbase
()));
str
line
(
pbase
(),
static_cast
<
size_t
>
(
pptr
()
-
pbase
()));
pywrite
(
line
);
{
pyflush
();
gil_scoped_acquire
tmp
;
pywrite
(
line
);
pyflush
();
}
setp
(
pbase
(),
epptr
());
setp
(
pbase
(),
epptr
());
}
}
...
...
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