]> git.saurik.com Git - wxWidgets.git/commitdiff
we probably don't need crit section in GetTimeZone()
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jul 2003 22:46:06 +0000 (22:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jul 2003 22:46:06 +0000 (22:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index 6751dd2ad9498f3b1ed593f9d382253ee1b63cdc..6c87ccc2368bcd26bbe23989e9afca0d9930d582 100644 (file)
@@ -222,16 +222,6 @@ const wxDateTime wxDefaultDateTime;
 
 wxDateTime::Country wxDateTime::ms_country = wxDateTime::Country_Unknown;
 
-// ----------------------------------------------------------------------------
-// private globals
-// ----------------------------------------------------------------------------
-
-// a critical section is needed to protect GetTimeZone() static
-// variable in MT case
-#if wxUSE_THREADS
-    static wxCriticalSection gs_critsectTimezone;
-#endif // wxUSE_THREADS
-
 // ----------------------------------------------------------------------------
 // private functions
 // ----------------------------------------------------------------------------
@@ -273,8 +263,6 @@ static int GetTimeZone()
     static long gmtoffset = LONG_MAX; // invalid timezone
 #endif
 
-    wxCRIT_SECT_LOCKER(lock, gs_critsectTimezone);
-
     // ensure that the timezone variable is set by calling localtime
     if ( !s_timezoneSet )
     {