diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2018-12-28 12:03:49 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2018-12-28 12:12:54 +0100 |
commit | 78cef8f73aacf923bbc2e8058c6d2eaa9c9607d6 (patch) | |
tree | a3b1406667d0f3e1bf1895bdd5c530a715802d57 | |
parent | 4ba1f39c9be165679bf40ee03dcdd89dde54130f (diff) |
Fix comments and add debug logs
-rw-r--r-- | src/analyzer/analyzerthread.cpp | 2 | ||||
-rw-r--r-- | src/track/globaltrackcache.h | 2 | ||||
-rw-r--r-- | src/util/workerthread.cpp | 2 | ||||
-rw-r--r-- | src/util/workerthread.h | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/src/analyzer/analyzerthread.cpp b/src/analyzer/analyzerthread.cpp index 7f2b490b61..2802485100 100644 --- a/src/analyzer/analyzerthread.cpp +++ b/src/analyzer/analyzerthread.cpp @@ -189,10 +189,12 @@ void AnalyzerThread::doRun() { emitDoneProgress(kAnalyzerProgressDone); } } + DEBUG_ASSERT(!m_currentTrack); DEBUG_ASSERT(isStopping()); m_analyzers.clear(); + kLogger.debug() << "Exiting worker thread"; emitProgress(AnalyzerThreadState::Exit); } diff --git a/src/track/globaltrackcache.h b/src/track/globaltrackcache.h index bc4caa3032..12c7da4daf 100644 --- a/src/track/globaltrackcache.h +++ b/src/track/globaltrackcache.h @@ -34,7 +34,7 @@ protected: class GlobalTrackCacheEntry final { // We need to hold two shared pointers, the deletingPtr is - // responsible for the lifetime of the Track object itselfe. + // responsible for the lifetime of the Track object itself. // The second one counts the references outside Mixxx, if it // is not longer referenced, the track is saved and evicted // from the cache. diff --git a/src/util/workerthread.cpp b/src/util/workerthread.cpp index df5cefcf25..036107e504 100644 --- a/src/util/workerthread.cpp +++ b/src/util/workerthread.cpp @@ -78,7 +78,7 @@ void WorkerThread::resume() { if (m_suspend.compare_exchange_strong(suspended, false)) { logTrace(m_logger, "Resuming"); // The thread might just be preparing to suspend after - // reading detecting that m_suspend was true. To avoid + // loading and detecting that m_suspend was true. To avoid // a race condition we need to acquire the mutex that // is associated with the wait condition, before // signalling the condition. Otherwise the signal diff --git a/src/util/workerthread.h b/src/util/workerthread.h index 04eebcbfb1..bc8f387ea3 100644 --- a/src/util/workerthread.h +++ b/src/util/workerthread.h @@ -12,7 +12,7 @@ // A worker thread without an event loop. // // This object lives in the creating thread of the host, i.e. does not -// run its own event loop. It does not does not use slots for communication +// run its own event loop. It does not use slots for communication // with its host which would otherwise still be executed in the host's // thread. // |