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

no pthread_cond_timedwait() #6

Closed
kempj opened this issue Mar 31, 2013 · 4 comments
Closed

no pthread_cond_timedwait() #6

kempj opened this issue Mar 31, 2013 · 4 comments
Assignees

Comments

@kempj
Copy link

kempj commented Mar 31, 2013

I accidentally omitted this function call from my earlier list of needed pthreads calls, and it's used by the OpenUH runtime.

Thanks,
Jeremy

@ghost ghost assigned stevenrbrandt Jun 18, 2013
@hkaiser
Copy link
Member

hkaiser commented Jun 18, 2013

Steve, how difficult would it be to implement this function as well?

@stevenrbrandt
Copy link
Member

Not hard. Alex said he was going to work on it, but I'm not sure how much
time he has. Is there a timed version of a future get()? I think that's all
that I really need.

Cheers,
Steve

On Tue, Jun 18, 2013 at 9:12 PM, Hartmut Kaiser notifications@github.comwrote:

Steve, how difficult would it be to implement this function as well?


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-19609955
.

@hkaiser
Copy link
Member

hkaiser commented Jun 20, 2013

There is no timed version of future::get(), but timed versions of future::wait():

    future_status
    wait_until(boost::posix_time::ptime const& at);

    future_status 
    wait_for(boost::posix_time::time_duration const& p);

    template <typename Clock, typename Duration>
    future_status
    wait_until(boost::chrono::time_point<Clock, Duration> const& abs_time);

    template <typename Rep, typename Period>
    future_status
    wait_for(boost::chrono::duration<Rep, Period> const& rel_time);

@stevenrbrandt
Copy link
Member

Implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants