Document that git_odb is thread-safe

Commit 4ae41f9c63 made `git_odb`
race-free, and added internal locking. Update `docs/threading.md`
accordingly, so that APIs built atop libgit2 (e.g. language bindings)
can count on this.
This commit is contained in:
Josh Triplett
2021-11-11 00:30:40 +01:00
parent 44ec8b5cdf
commit 644c763b76

View File

@@ -21,6 +21,9 @@ There are some objects which are read-only/immutable and are thus safe
to share across threads, such as references and configuration
snapshots.
The `git_odb` object uses locking internally, and is thread-safe to use from
multiple threads simultaneously.
Error messages
--------------