Skip to content

When signaling to a waiting task, do not signal under the hold of a l… #35

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

Merged
merged 1 commit into from
Dec 2, 2019
Merged

Conversation

zerodefect
Copy link
Contributor

When signalling to a waiting task, do not signal under the hold of a lock otherwise it may cause the signaled thread to go back to sleep if the lock is still owned by the signaling thread at the time of acting on the signal.

…ock otherwise it may cause the signaled thread to go back to sleep if the lock is still owned by the signaling thread.
@Amanieu Amanieu merged commit 927d378 into Amanieu:master Dec 2, 2019
@Amanieu
Copy link
Owner

Amanieu commented Dec 2, 2019

Thanks!

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.

2 participants