Commit dfd5b32f35f68a7aae0fb06217c5d0d31f1edf82

Edward Thomson 2021-11-11T15:10:37

Merge pull request #6109 from joshtriplett/document-odb-race-free Document that `git_odb` is thread-safe

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/docs/threading.md b/docs/threading.md
index ddfaf7a..de085c8 100644
--- a/docs/threading.md
+++ b/docs/threading.md
@@ -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
 --------------