aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2018-02-08 12:38:14 +0200
committerPetri Lehtinen <petri@digip.org>2018-02-08 12:38:14 +0200
commitf44921e1766b4584bb239593ce7e7ea3242c99c3 (patch)
treef40ab7766463ca549abd75cbf2483603181c9590 /src
parent3aee856d7bc453d488ff9fa5f2ac70e979dd9869 (diff)
downloadjansson-threadsafety.zip
jansson-threadsafety.tar.gz
jansson-threadsafety.tar.bz2
Clarify thread safety docs, rename JANSSON_THREAD_SAFEthreadsafety
Diffstat (limited to 'src')
-rw-r--r--src/jansson.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jansson.h b/src/jansson.h
index 042390c..b17e8f4 100644
--- a/src/jansson.h
+++ b/src/jansson.h
@@ -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 */