mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-19 19:56:53 +02:00
Make it a bit more multithreading friendly
This commit is contained in:
parent
ac372d2b00
commit
86f085b810
@ -45,7 +45,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int const stackLimit_g = 1000;
|
static int const stackLimit_g = 1000;
|
||||||
|
#if __cplusplus >= 201103L
|
||||||
|
thread_local static int stackDepth_g = 0; // see readValue()
|
||||||
|
#else
|
||||||
static int stackDepth_g = 0; // see readValue()
|
static int stackDepth_g = 0; // see readValue()
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Json {
|
namespace Json {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user