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

Properly free resource after thread detach #423

Open
todo bot opened this issue Aug 12, 2019 · 0 comments
Open

Properly free resource after thread detach #423

todo bot opened this issue Aug 12, 2019 · 0 comments
Assignees
Labels
project-libuser Related to the libuser todo 🗒️ Created by the todo bot

Comments

@todo
Copy link

todo bot commented Aug 12, 2019

When detaching a thread, we should ensure that the associated resources (stack, handle, context, etc...) are properly freed before the Process exits. This can be done by adding the ThreadContext to a global Vec<> of ThreadContext that gets freed when the main thread (or the last thread alive?) exits.


// TODO: Properly free resource after thread detach
// BODY: When detaching a thread, we should ensure that the associated resources (stack,
// BODY: handle, context, etc...) are properly freed before the Process exits. This can be
// BODY: done by adding the ThreadContext to a global Vec<> of ThreadContext that gets freed
// BODY: when the main thread (or the last thread alive?) exits.
}
}


This issue was generated by todo based on a TODO comment in 7333eaf when #415 was merged. cc @Orycterope.
@todo todo bot added the todo 🗒️ Created by the todo bot label Aug 12, 2019
@roblabla roblabla added the project-libuser Related to the libuser label Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project-libuser Related to the libuser todo 🗒️ Created by the todo bot
Projects
None yet
Development

No branches or pull requests

2 participants