Clarify thread safety docs, rename JANSSON_THREAD_SAFE

This commit is contained in:
Petri Lehtinen
2018-02-08 12:38:14 +02:00
parent 3aee856d7b
commit f44921e176
3 changed files with 26 additions and 14 deletions

View File

@@ -36,7 +36,7 @@ extern "C" {
/* If __atomic or __sync builtins are available the library is thread
* safe for all read-only functions plus reference counting. */
#if JSON_HAVE_ATOMIC_BUILTINS || JSON_HAVE_SYNC_BUILTINS
#define JANSSON_THREAD_SAFE
#define JANSSON_THREAD_SAFE_REFCOUNT 1
#endif
/* types */