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

Utilize thread blocking in lock/unlock #26

Open
farlepet opened this issue Jun 26, 2022 · 0 comments
Open

Utilize thread blocking in lock/unlock #26

farlepet opened this issue Jun 26, 2022 · 0 comments
Projects

Comments

@farlepet
Copy link
Owner

farlepet commented Jun 26, 2022

Initial thought involves converting lock_t to a structure, containing both the atomic variable, and a list of threads currently waiting for it to unlock. When it is unlocked, the first thread will be unblocked and removed from the list.

There may be a more efficient way to achieve this, however.

May also be useful to have both thread-aware and non-thread-aware variants.

@farlepet farlepet created this issue from a note in Lambda OS (Backlog) Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Lambda OS
  
Backlog
Development

No branches or pull requests

1 participant