|
|
@ -1890,16 +1890,16 @@ namespace {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
|
|
|
|
#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
|
|
|
|
static pthread_mutex_t cs = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
|
|
|
pthread_mutex_t cs = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
static pthread_mutex_t cs = PTHREAD_MUTEX_INITIALIZER;
|
|
|
|
pthread_mutex_t cs = PTHREAD_MUTEX_INITIALIZER;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
static std::string temporaryPath()
|
|
|
|
std::string temporaryPath()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
static int count = 0 ;
|
|
|
|
static int count = 0;
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_MSC_VER) || defined(__MINGW__)
|
|
|
|
#if defined(_MSC_VER) || defined(__MINGW__)
|
|
|
|
EnterCriticalSection(&cs);
|
|
|
|
EnterCriticalSection(&cs);
|
|
|
|