-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Labels
T-libs-api
Relevant to the library API team, which will review and decide on the RFC.
Comments
On *nix, there is pthread_timedjoin_np but it's a nonstandard GNU extension. Is support for this sufficiently universal? |
On Windows this is a trivial matter of calling a wait function with a timeout on the process handle. |
nrc
added
the
T-libs-api
Relevant to the library API team, which will review and decide on the RFC.
label
Aug 19, 2016
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
JoinHandle should have a join_timeout method.
(Moved from rust-lang/rust#30350)
The text was updated successfully, but these errors were encountered: