-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support flush() on ostream. #2435
Comments
A PR to make |
Made flush public in bba0a9d. Thanks for the suggestion. |
I've tried public flush() in my project's logger. It seems that flush() is not safe if another thread is constantly calling ostream::print() on the same ostream object. My debug build ran ok while my release build encountered segmentation fault. Problem went away after I removed my flushes. |
|
Hey @vitaut! v8.0.1 was released a month before this feature...will you please consider cutting a new release? |
In the meantime, do you know of any way to flush the stream? |
This is too minor for a dedicated release and will be part of the regular release in a couple of months. In the meantime you can pin to the specific commit that adds |
I noticed that flush() is a private member of ostream and cannot be called outside. I don't understand why it is designed to be private.
The text was updated successfully, but these errors were encountered: