Explorar o código

README: Add setlocale to caveats

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
3efef58c32
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      README.md

+ 3 - 2
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!