From f30394e222a0df68576c8564ecb4e1a8b4bf0d20 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Wed, 1 Sep 2010 20:54:34 +0000 Subject: Fixed tsan warnings in remoting_unittests BUG=53766,53837 TEST=remoting_unittests under tsan Review URL: http://codereview.chromium.org/3269005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58235 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/jingle_glue/jingle_thread.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'remoting/jingle_glue') diff --git a/remoting/jingle_glue/jingle_thread.cc b/remoting/jingle_glue/jingle_thread.cc index 0037066..f13477e 100644 --- a/remoting/jingle_glue/jingle_thread.cc +++ b/remoting/jingle_glue/jingle_thread.cc @@ -92,6 +92,9 @@ void JingleThread::Stop() { // queue before exiting. Thread::Stop() would not do that. Post(this, kStopMessageId); stopped_event_.Wait(); + + // This will wait until the thread is actually finished. + Thread::Stop(); } MessageLoop* JingleThread::message_loop() { -- cgit v1.1