summaryrefslogtreecommitdiffhomepage
path: root/dinput/dinput.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-16 05:58:48 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:49:13 +0100
commit03d28dde1635e36508cff1f9eabc265cdb5febb9 (patch)
treeee62d5851315c7b4c2c3c05f8a72e29a6dd4a1e8 /dinput/dinput.hpp
parentf8faca0abecafd6e65d07bd0fdd618070114cdfa (diff)
compat/mutex: remove
Always use the adaptive QMutex.
Diffstat (limited to 'dinput/dinput.hpp')
-rw-r--r--dinput/dinput.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp
index 7128229b..4bb3b458 100644
--- a/dinput/dinput.hpp
+++ b/dinput/dinput.hpp
@@ -8,9 +8,9 @@
#pragma once
-#include "export.hpp"
+#include <QMutex>
-#include <atomic>
+#include "export.hpp"
#undef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x800
@@ -26,7 +26,7 @@ class OTR_DINPUT_EXPORT di_t final
static diptr handle;
static int refcnt;
- static std::atomic_flag lock;
+ static QMutex lock;
static diptr init_di_();
public: