diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-23 13:22:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-23 13:22:58 +0200 |
commit | d530b912a83e894759202e80951b5b59f42b8b9f (patch) | |
tree | d414612ae69e404f14f1f90a3896f317618dea06 /dinput | |
parent | 0e1b00e9a78ee65c4b5eeaaa74a2be4a3ccd0ac7 (diff) |
dinput: lessen logspam
Diffstat (limited to 'dinput')
-rw-r--r-- | dinput/dinput.cpp | 6 | ||||
-rw-r--r-- | dinput/keybinding-worker.cpp | 2 |
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(); |