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

Support Threads.Condition variables in Select. #3

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

NHDaly
Copy link
Owner

@NHDaly NHDaly commented Sep 4, 2019

Note that you need to unlock the condition inside the body of your
select, which is sort of annoying and kind of makes it not-worth-it to
support Condition variables.

It would probably be better to just have an assertion error if you try
to wait on a condition variable...

BUT, anyway, this commit fixes the waiting to support condition
variables correctly, I'm pretty sure! :)

Addresses the second problem listed in #2

Note that you need to unlock the condition inside the body of your
select, which is super annoying and kind of makes it not-worth-it to
support Condition variables.

It would probably be better to just have an assertion error if you try
to wait on a condition variable...

BUT, anyway, this commit fixes the waiting to support condition
variables correctly, I'm pretty sure! :)
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