Skip to content

Commit dfd5b32

Browse files
authored
Merge pull request libgit2#6109 from joshtriplett/document-odb-race-free
Document that `git_odb` is thread-safe
2 parents 44ec8b5 + 644c763 commit dfd5b32

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)