webrtc/talk/media/base
wu@webrtc.org 3c5d2b43ec Thread::Stop() must be called before any subclass's destructor completes.
Update Thread documentation, fix all subclasses that had a problem.

This is to avoid a data racing between the destructor modifying the vtable, and
Thread::PreRun calling virtual method Run at the same time.

For example:
[ RUN      ] FileMediaEngineTest.TestGetCapabilities
==================
WARNING: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) (pid=2967)
  Read of size 8 at 0x7d480000bd00 by thread T1:
    #0 talk_base::Thread::PreRun(void*) /mnt/data/b/build/slave/Linux_Tsan_v2/build/src/out/Release/../../talk/base/thread.cc:353 (libjingle_media_unittest+0x000000234da8)

  Previous write of size 8 at 0x7d480000bd00 by main thread:
    #0 talk_base::Thread::~Thread() /mnt/data/b/build/slave/Linux_Tsan_v2/build/src/out/Release/../../talk/base/thread.cc:158 (libjingle_media_unittest+0x00000023478c)
    #1 ~RtpSenderReceiver /mnt/data/b/build/slave/Linux_Tsan_v2/build/src/out/Release/../../talk/media/base/filemediaengine.cc:122 (libjingle_media_unittest+0x0000001b551f)
    ...

RISK=P2
TESTED=try bots and tsan
BUG=2078,2080
R=fischman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2428004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4999 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-10-18 16:27:26 +00:00
..
audioframe.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
audiorenderer.h Update talk folder to revision=49952949 2013-07-26 19:17:59 +00:00
capturemanager_unittest.cc Update libjingle to 50191337. 2013-08-01 00:00:07 +00:00
capturemanager.cc Update libjingle to 50191337. 2013-08-01 00:00:07 +00:00
capturemanager.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
capturerenderadapter.cc Update talk folder to revision=49952949 2013-07-26 19:17:59 +00:00
capturerenderadapter.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
codec_unittest.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
codec.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
codec.h Update libjingle to 50654631. 2013-08-10 07:18:04 +00:00
constants.cc Update libjingle to 53856368. 2013-10-07 23:32:02 +00:00
constants.h Update libjingle to 53856368. 2013-10-07 23:32:02 +00:00
cpuid_unittest.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
cpuid.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
cpuid.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
cryptoparams.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
fakecapturemanager.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
fakemediaengine.h Update libjingle to 53856368. 2013-10-07 23:32:02 +00:00
fakemediaprocessor.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
fakenetworkinterface.h Update libjingle to 53057474. 2013-09-23 20:34:45 +00:00
fakertp.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
fakevideocapturer.h Update talk folder to revision=49713299. 2013-07-22 21:07:49 +00:00
fakevideorenderer.h Update talk to 51664136. 2013-08-30 21:24:16 +00:00
filemediaengine_unittest.cc Update libjingle to CL 53398036. 2013-09-27 23:04:10 +00:00
filemediaengine.cc Thread::Stop() must be called before any subclass's destructor completes. 2013-10-18 16:27:26 +00:00
filemediaengine.h Update libjingle to 53856368. 2013-10-07 23:32:02 +00:00
hybriddataengine.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
hybridvideoengine.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
hybridvideoengine.h Update libjingle to 53856368. 2013-10-07 23:32:02 +00:00
mediachannel.h Update talk to 54898858. 2013-10-16 18:12:02 +00:00
mediacommon.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
mediaengine.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
mediaengine.h Update libjingle to 53856368. 2013-10-07 23:32:02 +00:00
mutedvideocapturer_unittest.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
mutedvideocapturer.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
mutedvideocapturer.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
nullvideoframe.h * Update libjingle to 50389769. 2013-08-05 20:36:57 +00:00
nullvideorenderer.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
rtpdataengine_unittest.cc Update libjingle to CL 53496343. 2013-09-30 18:59:08 +00:00
rtpdataengine.cc Update libjingle to CL 53398036. 2013-09-27 23:04:10 +00:00
rtpdataengine.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
rtpdump_unittest.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
rtpdump.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
rtpdump.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
rtputils_unittest.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
rtputils.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
rtputils.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
screencastid.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
streamparams_unittest.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
streamparams.cc Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
streamparams.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
testutils.cc Update talk folder to revision=49713299. 2013-07-22 21:07:49 +00:00
testutils.h Update libjingle to CL 53398036. 2013-09-27 23:04:10 +00:00
videoadapter.cc Fixing the build error on Windows. 2013-09-07 00:12:57 +00:00
videoadapter.h Update talk to 51960985. 2013-09-06 22:56:28 +00:00
videocapturer_unittest.cc Update talk to 51960985. 2013-09-06 22:56:28 +00:00
videocapturer.cc Update talk to 51960985. 2013-09-06 22:56:28 +00:00
videocapturer.h Update talk to 51960985. 2013-09-06 22:56:28 +00:00
videocommon_unittest.cc Update talk to 51960985. 2013-09-06 22:56:28 +00:00
videocommon.cc Update talk to 51960985. 2013-09-06 22:56:28 +00:00
videocommon.h Update talk to 51664136. 2013-08-30 21:24:16 +00:00
videoengine_unittest.h Update talk to 51664136. 2013-08-30 21:24:16 +00:00
videoframe_unittest.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
videoframe.cc Update talk folder to revision=49713299. 2013-07-22 21:07:49 +00:00
videoframe.h * Update libjingle to 50389769. 2013-08-05 20:36:57 +00:00
videoprocessor.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
videorenderer.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00
voiceprocessor.h Adds trunk/talk folder of revision 359 from libjingles google code to 2013-07-10 00:45:36 +00:00