diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-06 16:14:47 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-09 15:17:19 +0000 |
commit | c033dd8a3e8f58f307d3e248a68b62252d3fc2c6 (patch) | |
tree | c2c543f3b8b659c05d09fb811ea86e5c2a9da8bc /docs/error-handling.md | |
parent | 1a8b2922d953e78bd51fc6d5ef290e1f7e00af3a (diff) | |
download | libgit2-ethomson/cmake2.tar.gz |
cmake: standardize USE_THREADS and USE_NSECethomson/cmake2
Threading can now be disabled with `USE_THREADS=OFF` instead of
`THREADSAFE=OFF` to better support the other cmake semantics.
Nanosecond support is the default _if_ we can detect it. This should be
our default always - like threads - and people can opt out explicitly.
Diffstat (limited to 'docs/error-handling.md')
-rw-r--r-- | docs/error-handling.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/error-handling.md b/docs/error-handling.md index 05725f2ed..13ce78f5f 100644 --- a/docs/error-handling.md +++ b/docs/error-handling.md @@ -21,7 +21,7 @@ critical failures (such as a packfile being corrupted, a loose object having the wrong access permissions, etc.) all of which will return -1. When the object lookup is successful, it will return 0. -If libgit2 was compiled with threads enabled (`-DTHREADSAFE=ON` when using +If libgit2 was compiled with threads enabled (`-DUSE_THREADS=ON` when using CMake), then the error message will be kept in thread-local storage, so it will not be modified by other threads. If threads are not enabled, then the error message is in global data. |