diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2018-11-26 19:25:47 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-11-26 19:59:10 +0300 |
commit | a094c5bafa02ac778c42ac3d85cd167fa44d88c9 (patch) | |
tree | 84af07b9bf11c26f82c2bb5e76d381f0d835596a | |
parent | 2d6b71ee6d3459658ebe73c5cb262023b86f472e (diff) |
Cygwin: spinlock: remove useless get_ll call
LARGE_INTEGER has QuadPart anyway, no reason to compute the
64 bit value from HighPart and LowPart.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/spinlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spinlock.h b/winsup/cygwin/spinlock.h index f244355be..d8ded1274 100644 --- a/winsup/cygwin/spinlock.h +++ b/winsup/cygwin/spinlock.h @@ -30,7 +30,7 @@ class spinlock { LARGE_INTEGER t; if (NtQuerySystemTime (&t) == STATUS_SUCCESS) - return get_ll (t); + return t.QuadPart; return 0LL; } public: |