summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-joystick.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-29 12:34:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-29 12:34:19 +0100
commita07eed2a0de09224adb1381d7744a2f98857836e (patch)
tree0c62cbf6ac597f3282e7b92f3bb7034d136eaa31 /opentrack/win32-joystick.cpp
parentc03c6f2bdb6a4f236c22a916753d4aa9728085fa (diff)
api/joystick: drop locking, add comment
Diffstat (limited to 'opentrack/win32-joystick.cpp')
-rw-r--r--opentrack/win32-joystick.cpp4
1 files changed, 2 insertions, 2 deletions
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();