git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36508
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxUSE_THREADS && !defined(__WINDOWS__)
// No need to waste time with a mutex on windows since it's using
// thread local storage for localtime anyway.
#if wxUSE_THREADS && !defined(__WINDOWS__)
// No need to waste time with a mutex on windows since it's using
// thread local storage for localtime anyway.
- wxMutexLocker(timeLock);
+ wxMutexLocker locker(timeLock);
#endif
memcpy(temp, localtime(ticks), sizeof(struct tm));
return temp;
#endif
memcpy(temp, localtime(ticks), sizeof(struct tm));
return temp;
#if wxUSE_THREADS && !defined(__WINDOWS__)
// No need to waste time with a mutex on windows since it's
// using thread local storage for gmtime anyway.
#if wxUSE_THREADS && !defined(__WINDOWS__)
// No need to waste time with a mutex on windows since it's
// using thread local storage for gmtime anyway.
- wxMutexLocker(timeLock);
+ wxMutexLocker locker(timeLock);
#endif
memcpy(temp, gmtime(ticks), sizeof(struct tm));
return temp;
#endif
memcpy(temp, gmtime(ticks), sizeof(struct tm));
return temp;