diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-10 12:45:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-10 12:45:01 +0200 |
commit | b67d81563718bd1f773f9e586b04b285e45b1208 (patch) | |
tree | f591d180832dd8ca31e7a76c08c244f6cd16c2c3 /compat/timer-resolution.hpp | |
parent | e3cf9b75b24ce6b202f33f2efc9de41e7c2aa01e (diff) |
compat/timer-resolution: we want higher timer resolution
Windows scheduler performs badly with 1000 Hz.
Diffstat (limited to 'compat/timer-resolution.hpp')
-rw-r--r-- | compat/timer-resolution.hpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/compat/timer-resolution.hpp b/compat/timer-resolution.hpp index 8c18a600..8f1d4bc7 100644 --- a/compat/timer-resolution.hpp +++ b/compat/timer-resolution.hpp @@ -43,11 +43,11 @@ using funptr_NtSetTimerResolution = ntstatus_ (__stdcall *)(ulong_, boolean_, ul class OTR_COMPAT_EXPORT timer_resolution final { - ulong_ old_value; - public: - timer_resolution(int msecs); + timer_resolution(); +#if 0 ~timer_resolution(); +#endif }; } @@ -55,8 +55,5 @@ public: using timer_impl::timer_resolution; #else -struct timer_resolution final -{ - inline timer_resolution(int) {} -}; +# error "this is win32-only header" #endif |