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

[kernel] thread_join from multiple threads #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[kernel] thread_join from multiple threads #36

wants to merge 1 commit into from

Conversation

jaybh
Copy link

@jaybh jaybh commented Feb 3, 2015

This patch enables multiple concurrent threads to call thread_join on
a particular thread

In thread_join(), we simply make checks regarding whether the thread
structure has been freed or not.

This could just be a quick fix. A better solution would be to
implement reference counting on thread objects, and free the
resources when the count goes to zero.

This patch enables multiple concurrent threads to call thread_join on
a particular thread

In thread_join(), we simply make checks regarding whether the thread
structure has been freed or not.

This could just be a quick fix. A better solution would be to
implement reference counting on thread objects, and free the
resources when the count goes to zero.
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

Successfully merging this pull request may close these issues.

1 participant