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

std::thread::JoinHandle should support timeout #1404

Open
adamcrume opened this issue Dec 12, 2015 · 3 comments
Open

std::thread::JoinHandle should support timeout #1404

adamcrume opened this issue Dec 12, 2015 · 3 comments
Labels
T-libs-api Relevant to the library API team, which will review and decide on the RFC.

Comments

@adamcrume
Copy link

JoinHandle should have a join_timeout method.

(Moved from rust-lang/rust#30350)

@sfackler
Copy link
Member

On *nix, there is pthread_timedjoin_np but it's a nonstandard GNU extension. Is support for this sufficiently universal?

@retep998
Copy link
Member

On Windows this is a trivial matter of calling a wait function with a timeout on the process handle.

@nrc nrc added the T-libs-api Relevant to the library API team, which will review and decide on the RFC. label Aug 19, 2016
@salewski
Copy link

FreeBSD has reportedly had pthread_timedjoin_np(...) since FreeBSD 6.1 (May, 2006).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-libs-api Relevant to the library API team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

5 participants