"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "f64ff575d776283de12b01a017a19665928e9b48"
Commit 047ce8c4 authored by Henry Schreiner's avatar Henry Schreiner Committed by Wenzel Jakob
Browse files

Fix iostream when used with nogil (#1368)

parent 95f750a8
...@@ -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());
} }
......
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