diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-29 13:27:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:48:18 +0100 |
commit | e9bbb68829e972df2e458aa5beec0568d4737f02 (patch) | |
tree | b305103d53214dcddb76c1f26738d334972b17d3 /dinput/dinput.hpp | |
parent | a1a9a091093c9fb711a1665de9f4d46ae5c5ab67 (diff) |
compat/spinlock: implement and use it
Diffstat (limited to 'dinput/dinput.hpp')
-rw-r--r-- | dinput/dinput.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp index a9241504..7128229b 100644 --- a/dinput/dinput.hpp +++ b/dinput/dinput.hpp @@ -25,8 +25,8 @@ class OTR_DINPUT_EXPORT di_t final static void ref_di(); static diptr handle; - static std::atomic<int> refcnt; - static std::atomic_flag init_lock; + static int refcnt; + static std::atomic_flag lock; static diptr init_di_(); public: |