diff options
author | Christopher Faylor <me@cgf.cx> | 2010-06-12 16:34:26 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-06-12 16:34:26 +0000 |
commit | 75172e03ac0825c62845d3cd6d49a1ace9d5171f (patch) | |
tree | 347e3c0266af8f8ff21150ceca26ae2de3177c96 /winsup | |
parent | 8b33c25b91d31b21f0848d7a6fb6c9c5ceff3d93 (diff) | |
download | cygnal-75172e03ac0825c62845d3cd6d49a1ace9d5171f.tar.gz cygnal-75172e03ac0825c62845d3cd6d49a1ace9d5171f.tar.bz2 cygnal-75172e03ac0825c62845d3cd6d49a1ace9d5171f.zip |
* times.cc (gtod): Move to sharable region.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/times.cc | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d72d99bda..cf73286e2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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 diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index f6f23bbbb..3b154164c 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -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 () |