summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dinput/dinput.cpp6
-rw-r--r--dinput/keybinding-worker.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/dinput/dinput.cpp b/dinput/dinput.cpp
index 1a61ce62..276559ef 100644
--- a/dinput/dinput.cpp
+++ b/dinput/dinput.cpp
@@ -41,8 +41,8 @@ void dinput_handle::di_t::free_di()
void dinput_handle::di_t::ref_di()
{
- const int refcnt_ = refcnt.fetch_add(1) + 1;
- qDebug() << "start: dinput refcount now" << refcnt_;
+ //const int refcnt_ = refcnt.fetch_add(1) + 1;
+ (void) refcnt.fetch_add(1);
}
dinput_handle::di_t& dinput_handle::di_t::operator=(const di_t& new_di)
@@ -62,8 +62,6 @@ void dinput_handle::di_t::unref_di()
{
const int refcnt_ = refcnt.fetch_sub(1) - 1;
- qDebug() << "exit: dinput refcount now" << refcnt_;
-
if (refcnt_ == 0)
{
while (init_lock.test_and_set()) { /* busy loop */ }
diff --git a/dinput/keybinding-worker.cpp b/dinput/keybinding-worker.cpp
index 70914f92..0f4788af 100644
--- a/dinput/keybinding-worker.cpp
+++ b/dinput/keybinding-worker.cpp
@@ -25,7 +25,7 @@ bool Key::should_process()
KeybindingWorker::~KeybindingWorker()
{
- qDebug() << "exit: destroying keybinding worker";
+ qDebug() << "exit: keybinding worker";
should_quit = true;
wait();