From 349068dcda596261dba68a4238bbbc0af4c66ef3 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sat, 3 Aug 2019 12:27:37 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d7e8b66d9..287e2bb5d 100644 --- a/README.md +++ b/README.md @@ -189,6 +189,10 @@ sometimes called runtime dispatch). We also support 64-bit ARM. We assume NEON support, and if the cryptographic extension is available, we leverage it, at compile-time. There is no runtime dispatch on ARM. +## Thread safety + +The simdjson library is single-threaded and thread safety is the responsability of the caller. If you are on an x64 processor, the runtime dispatching assigns the right code path the firs time that parsing is attempted. For safety, you should always call json_parse at least once in a single-threaded context. + ## Usage (old-school Makefile on platforms like Linux or macOS)