Skip to content
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

hpx::future::wait_for fails a simple test #1751

Closed
dmarce1 opened this issue Sep 14, 2015 · 3 comments
Closed

hpx::future::wait_for fails a simple test #1751

dmarce1 opened this issue Sep 14, 2015 · 3 comments

Comments

@dmarce1
Copy link
Member

dmarce1 commented Sep 14, 2015

hpx::future::wait_for will sometimes exit with hpx::lcos::future_status::timeout even though the amount of time passed to hpx::future::wait_for has not elapsed. I have reproduced this problem with a simple code here:

https://gist.github.com/dmarce1/ce35b52e77daed69d2e3

When I run it, eventually a wait_for call returns before "timeout_time" has elapsed.

@hkaiser
Copy link
Member

hkaiser commented Sep 15, 2015

@K-ballo: spurious wakeups?

@K-ballo
Copy link
Member

K-ballo commented Sep 15, 2015

@K-ballo: spurious wakeups?

Supposedly those don't exist in HPX. This does not appear to be caused by the known race in cv timed waits either.

@hkaiser
Copy link
Member

hkaiser commented Sep 24, 2015

@dmarce1 How do I run the given test in order to see the problem?

sithhell added a commit that referenced this issue Sep 26, 2015
Fixed #1751: hpx::future::wait_for fails a simple test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants