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

Make Odb Send and Sync #763

Merged
merged 2 commits into from Nov 11, 2021
Merged

Conversation

joshtriplett
Copy link
Member

As of libgit2 1.2.0, git_odb uses locking internally, and should be thread-safe. Mark it Send and Sync to allow access from multiple threads.

This ensures that we can count on new APIs and behavior, whether we're
building our vendored version or using a system library.
As of libgit2 1.2.0, `git_odb` uses locking internally, and should be
thread-safe. Mark it `Send` and `Sync` to allow access from multiple
threads.
@joshtriplett
Copy link
Member Author

One day I will get the marker-trait impl syntax right on the first try. But it is not this day.

@joshtriplett
Copy link
Member Author

Also see libgit2/libgit2#6109

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Seems good to me, but let's wait on merging until the upstream docs are merged?

@joshtriplett
Copy link
Member Author

joshtriplett commented Nov 11, 2021

@alexcrichton They've now been merged.

@alexcrichton alexcrichton merged commit 33b14ce into rust-lang:master Nov 11, 2021
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

2 participants