From 3efef58c323e17e61de853d6418a89193b5e9e8e Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sat, 8 Apr 2017 03:50:22 +0200 Subject: [PATCH] README: Add setlocale to caveats --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0c3e512..2938178 100644 --- a/README.md +++ b/README.md @@ -392,8 +392,9 @@ The maximum length of a floating point literal that cJSON supports is currently In general cJSON is **not thread safe**. However it is thread safe under the following conditions: -* You don't use `cJSON_GetErrorPtr` (you can use the `return_parse_end` parameter of `cJSON_ParseWithOpts` instead) -* You only ever call `cJSON_InitHooks` before using cJSON in any threads. +* `cJSON_GetErrorPtr` is never used (the `return_parse_end` parameter of `cJSON_ParseWithOpts` can be used instead) +* `cJSON_InitHooks` is only ever called before using cJSON in any threads. +* `setlocale` is never called before all calls to cJSON functions have returned. # Enjoy cJSON!