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

Balder/avoid deadlocking yourself #7347

Merged
merged 2 commits into from Oct 18, 2018
Merged

Conversation

baldersheim
Copy link
Member

@bratseth bratseth merged commit 7e7ff62 into master Oct 18, 2018
@bratseth bratseth deleted the balder/avoid-deadlocking-yourself branch October 18, 2018 05:46
@jobergum
Copy link
Member

🥇

Copy link
Member

@vekterli vekterli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -38,10 +38,10 @@
}
}

void put(Document document) throws InterruptedException {
void put(Document document, boolean self) throws InterruptedException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not immediately obvious what the semantics of self are unless you look at the call site(s). Consider renaming to something more explicit, maybe calledFromIoThread or something like that.

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.

None yet

4 participants