Skip to content
Snippets Groups Projects
Unverified Commit 14d7e529 authored by psychocrypt's avatar psychocrypt Committed by GitHub
Browse files

Merge pull request #521 from dickinsonreed/master

Also fflush in printer::print_str() if configured to do so
parents b6d319e9 07992b90
No related branches found
No related tags found
No related merge requests found
...@@ -211,6 +211,11 @@ void printer::print_str(const char* str) ...@@ -211,6 +211,11 @@ void printer::print_str(const char* str)
std::unique_lock<std::mutex> lck(print_mutex); std::unique_lock<std::mutex> lck(print_mutex);
fputs(str, stdout); fputs(str, stdout);
if (b_flush_stdout)
{
fflush(stdout);
}
if(logfile != nullptr) if(logfile != nullptr)
{ {
fputs(str, logfile); fputs(str, logfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment