Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2425)

Unified Diff: chrome/browser/chromeos/audio_mixer_pulse.cc

Issue 6374010: Add MessageLoop::AssertIdle(). Use in ChromeOS audio threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/audio_mixer_alsa.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/audio_mixer_pulse.cc
diff --git a/chrome/browser/chromeos/audio_mixer_pulse.cc b/chrome/browser/chromeos/audio_mixer_pulse.cc
index 42b268a3b77a5c6c5e509307cfcd596a5ccc4395..b5817bc9ba3ec13f7b9bd3a708cc2fd6e0e7e43e 100644
--- a/chrome/browser/chromeos/audio_mixer_pulse.cc
+++ b/chrome/browser/chromeos/audio_mixer_pulse.cc
@@ -7,6 +7,7 @@
#include <pulse/pulseaudio.h>
#include "base/logging.h"
+#include "base/message_loop.h"
#include "base/task.h"
#include "base/threading/thread_restrictions.h"
@@ -64,6 +65,7 @@ AudioMixerPulse::~AudioMixerPulse() {
// The worker thread should be idle at this time.
// See http://crosbug.com/11110 for discussion.
base::ThreadRestrictions::ScopedAllowIO allow_io_for_thread_join;
+ thread_->message_loop()->AssertIdle();
thread_->Stop();
thread_.reset();
@@ -468,4 +470,3 @@ inline bool AudioMixerPulse::MainloopLockIfReady() const {
}
} // namespace chromeos
-
« no previous file with comments | « chrome/browser/chromeos/audio_mixer_alsa.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698