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/dinput.cpp | |
parent | 0e1b00e9a78ee65c4b5eeaaa74a2be4a3ccd0ac7 (diff) |
dinput: lessen logspam
Diffstat (limited to 'dinput/dinput.cpp')
-rw-r--r-- | dinput/dinput.cpp | 6 |
1 files changed, 2 insertions, 4 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 */ } |