From a07eed2a0de09224adb1381d7744a2f98857836e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Nov 2015 12:34:19 +0100 Subject: api/joystick: drop locking, add comment --- opentrack/win32-joystick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opentrack') diff --git a/opentrack/win32-joystick.cpp b/opentrack/win32-joystick.cpp index a705adbc..6e64355c 100644 --- a/opentrack/win32-joystick.cpp +++ b/opentrack/win32-joystick.cpp @@ -135,8 +135,8 @@ void win32_joy_ctx::refresh(bool first) { if (!first) { - QMutexLocker l(&mtx); - + // accessing struct Timer without a lock. worst can happen is seconds + // and nanoseconds getting out of sync. no big deal. if (timer_joylist.elapsed_ms() < joylist_refresh_ms) return; timer_joylist.start(); -- cgit v1.2.3