Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2018-11-26 19:25:47 +0300
committerCorinna Vinschen <corinna@vinschen.de>2018-11-26 19:59:10 +0300
commita094c5bafa02ac778c42ac3d85cd167fa44d88c9 (patch)
tree84af07b9bf11c26f82c2bb5e76d381f0d835596a
parent2d6b71ee6d3459658ebe73c5cb262023b86f472e (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.h2
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: