[go: up one dir, main page]

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

Fix how units are created and accesses #26

Open
halimamer opened this issue Aug 24, 2017 · 0 comments
Open

Fix how units are created and accesses #26

halimamer opened this issue Aug 24, 2017 · 0 comments

Comments

@halimamer
Copy link

Currently, units (ABT_unit, ABTI_unit, or unit_t) are manipulated through the right APIs (e.g., u_create_from_thread) or accessing directly they internal fields. This is wrong, since those units are exposed to the user, who can create their own structures. They are also internally overloaded, such as for use by synchronization functions outside the intended scope of usage: pool operations.

These issues can be addressed by:
1- Always manipulate units through APIs where necessary
2- Use different encapsulation methods to build waiting queues in synchronization constructs instead of overloading ABTI_unit

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

No branches or pull requests

1 participant