mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
cmake: standardize USE_THREADS and USE_NSEC
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user