-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Figure out and implement task lifetime rules. #515
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
Comments
Is this completed now with tasks-as-ids? |
There's a life cycle that's implemented, but I think the issue is more making sure it's a sane design. I'm not really sure what the status of the task tree is, or even if we still want it. We also don't have any sort of reparenting, and it's not possible to kill tasks. |
Let's make sure that failure propagation to parents works correctly, then maybe we can call this resolved. |
* pthread_t is defined as uint_t, so must be c_uint, not uintptr_t, just as pthread_key_t is already defined * fd_set is defined as long, so must be i32/i64 based on target_pointer_width; this also fixes an indirect endianness issue encountered on sparc * FD_SETSIZE should be defined as 65536 when target_pointer_width = 64 Fixes rust-lang#515
Correct solaris libc definitions: * pthread_t is defined as uint_t, so must be c_uint, not uintptr_t, just as pthread_key_t is already defined * fd_set is defined as long, so must be i32/i64 based on target_pointer_width; this also fixes an indirect endianness issue encountered on sparc * FD_SETSIZE should be defined as 65536 when target_pointer_width = 64 Fixes rust-lang#515
Document irrefutable_let_patterns
Originally tasks were going to be lexically scoped, so they die as soon as the task variable goes out of scope on the parent task. This is counter-intuitive to a lot of people, so we might have a list of child tasks and refer to them by handles instead. This also would let us reparent tasks when the parent dies before its children.
The text was updated successfully, but these errors were encountered: