From 08cd8e0cb12bc8e0ffd71e4809395ad0ac99fb55 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 17 May 2018 17:40:29 +0300 Subject: [PATCH] Cleanup: unused imports --- Utilities/sync.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Utilities/sync.h b/Utilities/sync.h index 5d7e3ae461..9c8c6eab95 100644 --- a/Utilities/sync.h +++ b/Utilities/sync.h @@ -24,8 +24,6 @@ #include #ifdef _WIN32 -DYNAMIC_IMPORT("ntdll.dll", NtQueryTimerResolution, NTSTATUS(PULONG MinimumResolution, PULONG MaximumResolution, PULONG CurrentResolution)); -DYNAMIC_IMPORT("ntdll.dll", NtSetTimerResolution, NTSTATUS(ULONG DesiredResolution, BOOLEAN SetResolution, PULONG CurrentResolution)); DYNAMIC_IMPORT("ntdll.dll", NtWaitForKeyedEvent, NTSTATUS(HANDLE Handle, PVOID Key, BOOLEAN Alertable, PLARGE_INTEGER Timeout)); DYNAMIC_IMPORT("ntdll.dll", NtReleaseKeyedEvent, NTSTATUS(HANDLE Handle, PVOID Key, BOOLEAN Alertable, PLARGE_INTEGER Timeout)); DYNAMIC_IMPORT("ntdll.dll", NtDelayExecution, NTSTATUS(BOOLEAN Alertable, PLARGE_INTEGER DelayInterval)); @@ -108,7 +106,7 @@ inline int futex(int* uaddr, int futex_op, int val, const timespec* timeout, int { // TODO } - + map.erase(std::find(map.find(uaddr), map.end(), ref)); return res; } @@ -125,7 +123,7 @@ inline int futex(int* uaddr, int futex_op, int val, const timespec* timeout, int for (auto range = map.equal_range(uaddr); val && range.first != range.second; range.first++) { auto& entry = *range.first->second; - + if (entry.mask & val3) { entry.cv.notify_one();