Skip to content

Commit 644c763

Browse files
committed
Document that git_odb is thread-safe
Commit 4ae41f9 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.
1 parent 44ec8b5 commit 644c763

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/threading.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ There are some objects which are read-only/immutable and are thus safe
2121
to share across threads, such as references and configuration
2222
snapshots.
2323

24+
The `git_odb` object uses locking internally, and is thread-safe to use from
25+
multiple threads simultaneously.
26+
2427
Error messages
2528
--------------
2629

0 commit comments

Comments
 (0)