Skip to content

Serialize calls to Dns.Callback#9561

Open
swankjesse wants to merge 1 commit into
masterfrom
jwilson.0718.serialize
Open

Serialize calls to Dns.Callback#9561
swankjesse wants to merge 1 commit into
masterfrom
jwilson.0718.serialize

Conversation

@swankjesse

Copy link
Copy Markdown
Collaborator

We had a bug where these calls could be made in parallel. Making them serial is a bit awkward but doesn't require any locks if we're clever.

We had a bug where these calls could be made in parallel. Making
them serial is a bit awkward but doesn't require any locks if we're
clever.
)
}

private tailrec fun updateStateAndCallCallbacks(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice. I am curious if it's materially faster than simple synchronisation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants