From d530b912a83e894759202e80951b5b59f42b8b9f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 23 Aug 2016 13:22:58 +0200 Subject: dinput: lessen logspam --- dinput/dinput.cpp | 6 ++---- dinput/keybinding-worker.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'dinput') 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(); -- cgit v1.2.3