提交 3efef58c 编写于 作者: M Max Bruckner

README: Add setlocale to caveats

上级 65541b90
...@@ -392,8 +392,9 @@ The maximum length of a floating point literal that cJSON supports is currently ...@@ -392,8 +392,9 @@ The maximum length of a floating point literal that cJSON supports is currently
In general cJSON is **not thread safe**. In general cJSON is **not thread safe**.
However it is thread safe under the following conditions: 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) * `cJSON_GetErrorPtr` is never used (the `return_parse_end` parameter of `cJSON_ParseWithOpts` can be used instead)
* You only ever call `cJSON_InitHooks` before using cJSON in any threads. * `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! # Enjoy cJSON!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册