]> sourceware.org Git - newlib-cygwin.git/commitdiff
* times.cc (gtod): Move to sharable region.
authorChristopher Faylor <me@cgf.cx>
Sat, 12 Jun 2010 16:34:26 +0000 (16:34 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 12 Jun 2010 16:34:26 +0000 (16:34 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/times.cc

index d72d99bda5afee730bd231db08d316ccf0ee95ae..cf73286e2f728374275fc3d4c198d39cdfa77b1a 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-12  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * times.cc (gtod): Move to sharable region.
+
 2010-06-09  Corinna Vinschen  <corinna@vinschen.de>
 
        * path.cc (symlink_info::check_shortcut): Use ro_u_empty rather than
index f6f23bbbbbbf77a58fcbf78f790d0b044dcf1226..3b154164c5e406525865c9d8a28d2d897a83c993 100644 (file)
@@ -28,7 +28,13 @@ details. */
 #define FACTOR (0x19db1ded53e8000LL)
 #define NSPERSEC 10000000LL
 
-hires_ms NO_COPY gtod;
+/* TODO: Putting this variable in the shared cygwin region partially solves
+   the problem of cygwin processes not recognizing date changes when other
+   cygwin processes set the date.  There is still an additional problem of
+   long-running cygwin processes becoming confused when a non-cygwin process
+   sets the date.  Unfortunately, it looks like a minor redesign is required
+   to handle that case.  */
+hires_ms gtod __attribute__((section (".cygwin_dll_common"), shared));
 
 static inline LONGLONG
 systime_ns ()
This page took 0.031076 seconds and 5 git commands to generate.