Make it a bit more multithreading friendly

This commit is contained in:
Kirill V. Lyadvinsky 2016-11-03 22:45:36 +03:00
parent ac372d2b00
commit 86f085b810

View File

@ -45,7 +45,11 @@
#endif
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()
#endif
namespace Json {