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
cout defect #1180
Comments
I ran it with both -t16 and -t1, the result is the same. |
I changed the print function to that: void print_stuff()
{
hpx::this_thread::sleep_for(boost::posix_time::milliseconds(1000));
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 10 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 20 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 30 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 40 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 50 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 60 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 70 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 80 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 90 << ":" << 10 << " ..." << hpx::endl;
hpx::this_thread::sleep_for(boost::posix_time::milliseconds(1000));
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 10 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 10 << ":" << 10 << " ..." << hpx::endl;
hpx::cout << "Adding workloads to queue ..." << hpx::endl;
hpx::cout << "\tAdding workload " << 10 << ":" << 10 << " ..." << hpx::endl;
} which produced this output:
Which doesn't make ANY sense to me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the problem that cout outputs get delayed for some reason.
I managed to break the problem down to a minimal example:
which produces the following output:
The 6 seconds delay should be 1 second delay, followed by 5 seconds after printing the last two lines.
If tried changing the output text to different things, but as soon as I change it, it works.
Any ideas?
The text was updated successfully, but these errors were encountered: